/* fre:ac - free audio converter * Copyright (C) 2001-2021 Robert Kausch * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of * the License, or (at your option) any later version. * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #include #include "youtube.h" #include "config.h" const String &BoCA::YouTube::GetComponentSpecs() { I18n *i18n = I18n::Get(); i18n->SetContext("Components::Extensions"); static String componentSpecs = String(" \ \ \ \ ").Append(i18n->TranslateString("Video Downloader")).Append(" \ 1.0 \ youtube-ext \ extension \ \ \ "); return componentSpecs; } BoCA::YouTube::YouTube() { configLayer = NIL; mainTabLayer = NIL; getMainTabLayer.Connect(&YouTube::GetMainTabLayer, this); } BoCA::YouTube::~YouTube() { if (configLayer != NIL) Object::DeleteObject(configLayer); if (mainTabLayer != NIL) Object::DeleteObject(mainTabLayer); } ConfigLayer *BoCA::YouTube::GetConfigurationLayer() { if (configLayer == NIL) configLayer = new ConfigureYouTube(); return configLayer; } Layer *BoCA::YouTube::GetMainTabLayer() { if (mainTabLayer == NIL) mainTabLayer = new LayerYouTube(); return mainTabLayer; }