File indexing completed on 2024-06-23 05:28:19
0001 /* 0002 This file is part of LightDM-KDE. 0003 0004 Copyright 2011, 2012 David Edmundson <kde@davidedmundson.co.uk> 0005 0006 LightDM-KDE is free software: you can redistribute it and/or modify 0007 it under the terms of the GNU General Public License as published by 0008 the Free Software Foundation, either version 3 of the License, or 0009 (at your option) any later version. 0010 0011 LightDM-KDE 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 LightDM-KDE. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 0020 #include "lightdmpackagestructure.h" 0021 0022 LightDMPackageStructure::LightDMPackageStructure(QObject *parent, const QVariantList &args) : 0023 Plasma::PackageStructure(parent, QLatin1String("LightDM/Theme")) 0024 { 0025 Q_UNUSED(args) 0026 0027 setServicePrefix("lightdm-theme-"); 0028 setDefaultPackageRoot("lightdm-kde-greeter/themes/"); 0029 0030 addFileDefinition("configfile", "config/main.xml", i18nc("File Definition", "Config structure")); 0031 addFileDefinition("configui", "config/config.ui", i18nc("File Definition", "Config UI")); 0032 addFileDefinition("preview", "preview.png", i18nc("File Definition", "Image of theme")); 0033 0034 addFileDefinition("mainscript", "ui/main.qml", i18nc("File Definition", "Main theme script")); 0035 setRequired("mainscript", true); 0036 0037 }