File indexing completed on 2024-04-28 16:49:23
0001 /* 0002 * Copyright 2019 Michail Vourlakos <mvourlakos@gmail.com> 0003 * 0004 * This file is part of Latte-Dock 0005 * 0006 * Latte-Dock is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU General Public License as 0008 * published by the Free Software Foundation; either version 2 of 0009 * the License, or (at your option) any later version. 0010 * 0011 * Latte-Dock is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 0020 #include "indicatorpackage.h" 0021 0022 // Qt 0023 #include <QDebug> 0024 0025 // KDE 0026 #include <KPackage/PackageLoader> 0027 #include <KI18n/KLocalizedString> 0028 0029 namespace Latte { 0030 0031 IndicatorPackage::IndicatorPackage(QObject *parent, const QVariantList &args) 0032 : KPackage::PackageStructure(parent, args) 0033 { 0034 } 0035 0036 IndicatorPackage::~IndicatorPackage() 0037 { 0038 } 0039 0040 void IndicatorPackage::initPackage(KPackage::Package *package) 0041 { 0042 package->setDefaultPackageRoot(QStringLiteral("latte/indicators")); 0043 0044 package->addDirectoryDefinition("config", QStringLiteral("config"), i18n("Configuration Definitions")); 0045 package->addDirectoryDefinition("ui", QStringLiteral("ui"), i18n("User Interface")); 0046 package->addDirectoryDefinition("data", QStringLiteral("data"), i18n("Data Files")); 0047 package->addDirectoryDefinition("scripts", QStringLiteral("code"), i18n("Executable Scripts")); 0048 package->addDirectoryDefinition("translations", QStringLiteral("locale"), i18n("Translations")); 0049 } 0050 0051 } 0052 0053 K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(Latte::IndicatorPackage, "latte-packagestructure-indicator.json") 0054 0055 #include "indicatorpackage.moc"