File indexing completed on 2024-04-21 16:29:31

0001 /***************************************************************************
0002  *   Copyright (C) 2008-2018 by Daniel Nicoletti                           *
0003  *   dantti12@gmail.com                                                    *
0004  *                                                                         *
0005  *   This program is free software; you can redistribute it and/or modify  *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  *                                                                         *
0010  *   This program is distributed in the hope that it will be useful,       *
0011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
0012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
0013  *   GNU General Public License for more details.                          *
0014  *                                                                         *
0015  *   You should have received a copy of the GNU General Public License     *
0016  *   along with this program; see the file COPYING. If not, write to       *
0017  *   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,  *
0018  *   Boston, MA 02110-1301, USA.                                           *
0019  ***************************************************************************/
0020 
0021 #include "Apper.h"
0022 #include <config.h>
0023 
0024 #include <QDBusMessage>
0025 #include <QDBusConnection>
0026 
0027 #include <QLoggingCategory>
0028 
0029 #include <KConfig>
0030 #include <KAboutData>
0031 #include <KLocalizedString>
0032 
0033 #include <QIcon>
0034 #include <QDir>
0035 
0036 int main(int argc, char **argv)
0037 {
0038     Apper app(argc, argv);
0039     QApplication::setWindowIcon(QIcon::fromTheme(QLatin1String("system-software-install")));
0040 
0041     KLocalizedString::setApplicationDomain("apper");
0042 
0043     KAboutData aboutData(QLatin1String("apper"), // DO NOT change this catalog unless you know it will not break translations!
0044                          i18n("Apper"),
0045                          QLatin1String(APPER_VERSION),
0046                          i18n("Apper is an application to get and manage software"),
0047                          KAboutLicense::LicenseKey::GPL);
0048     aboutData.addAuthor(i18n("(C) 2008-2018 Daniel Nicoletti"), QString(), QLatin1String("dantti12@gmail.com"), QLatin1String("http://dantti.wordpress.com"));
0049     aboutData.addCredit(i18n("Adrien Bustany"), i18n("libpackagekit-qt and other stuff"), QLatin1String("@"));
0050     aboutData.addAuthor(i18n("Matthias Klumpp"), QString(), QLatin1String("matthias@tenstral.net"));
0051 
0052     KAboutData::setApplicationData(aboutData);
0053 
0054     app.activate(app.arguments(), QDir::currentPath());
0055 
0056     return app.exec();
0057 }