File indexing completed on 2024-06-23 05:28:18
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 // KDE 0020 #include <KCmdLineArgs> 0021 #include <KApplication> 0022 #include <KAboutData> 0023 #include <KLocale> 0024 0025 #include "../about.h" 0026 #include "greeterwindow.h" 0027 0028 int main(int argc, char *argv[]) 0029 { 0030 KAboutData aboutData( 0031 "lightdm-kde-greeter", // appName 0032 0, // catalogName 0033 ki18n("LightDM KDE Greeter"), // programName 0034 "0"); // version (set by initAboutData) 0035 0036 initAboutData(&aboutData); 0037 0038 KCmdLineArgs::init(argc, argv, &aboutData); 0039 0040 KCmdLineOptions options; 0041 KCmdLineArgs::addCmdLineOptions(options); 0042 KCmdLineArgs::parsedArgs(); 0043 KApplication app; 0044 0045 GreeterWindow *w = new GreeterWindow(); 0046 w->show(); 0047 0048 return app.exec(); 0049 } 0050