File indexing completed on 2024-05-19 09:42:49
0001 /* 0002 Copyright (C) 2014 Lukáš Tinkl <lukas@kde.org> 0003 0004 This program is free software: you can redistribute it and/or modify 0005 it under the terms of the GNU General Public License as published by 0006 the Free Software Foundation, either version 3 of the License, or 0007 (at your option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 GNU General Public License for more details. 0013 0014 You should have received a copy of the GNU General Public License 0015 along with this program. If not, see <http://www.gnu.org/licenses/>. 0016 */ 0017 0018 #include <QtWidgets/QApplication> 0019 0020 #include "pkupdates.h" 0021 0022 int main(int argc, char *argv[]) 0023 { 0024 QApplication app(argc, argv); 0025 app.setOrganizationName("KDE"); 0026 app.setOrganizationDomain("kde.org"); 0027 app.setApplicationName("PkConsole"); 0028 app.setApplicationVersion(PROJECT_VERSION); 0029 0030 PkUpdates * upd = new PkUpdates(qApp); 0031 QObject::connect(upd, &PkUpdates::done, qApp, &QCoreApplication::quit); 0032 0033 return app.exec(); 0034 }