SVN_SILENT made messages (.desktop file)
[kdepim.git] / storageservicemanager / main.cpp
blob8c217b9b34c7bf801596ff9bd929c1c7acf0db8b
1 /*
2 Copyright (c) 2013-2015 Montel Laurent <montel@kde.org>
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
21 #include "kdepim-version.h"
22 #include "storageservicemanagermainwindow.h"
23 #include <kaboutdata.h>
24 #include <Kdelibs4ConfigMigrator>
26 #include <qcommandlineparser.h>
27 #include <qcommandlineoption.h>
28 #include <KDBusService>
29 #include <KLocalizedString>
30 #include <QApplication>
32 int main(int argc, char **argv)
34 QApplication app(argc, argv);
35 app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
36 Kdelibs4ConfigMigrator migrate(QStringLiteral("storageservice"));
37 migrate.setConfigFiles(QStringList() << QStringLiteral("storageservicerc") << QStringLiteral("storageservicemanager.notifyrc"));
38 migrate.setUiFiles(QStringList() << QStringLiteral("storageserviceui.rc"));
39 migrate.migrate();
41 KAboutData aboutData(QStringLiteral("storageservicemanager"),
42 i18n("Storage Service Manager"),
43 QStringLiteral(KDEPIM_VERSION),
44 i18n("Storage Service Manager"),
45 KAboutLicense::GPL_V2,
46 i18n("Copyright © 2013-2015 storageservicemanager authors"));
47 aboutData.addAuthor(i18n("Laurent Montel"), i18n("Maintainer"), QStringLiteral("montel@kde.org"));
49 QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
50 KAboutData::setApplicationData(aboutData);
52 QCommandLineParser parser;
53 parser.addVersionOption();
54 parser.addHelpOption();
55 aboutData.setupCommandLine(&parser);
56 parser.process(app);
57 aboutData.processCommandLine(&parser);
59 KDBusService service(KDBusService::Unique);
61 StorageServiceManagerMainWindow *mw = new StorageServiceManagerMainWindow();
62 mw->show();
63 return app.exec();