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
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
);
36 KLocalizedString::setApplicationDomain("storageservicemanager");
38 app
.setAttribute(Qt::AA_UseHighDpiPixmaps
, true);
39 Kdelibs4ConfigMigrator
migrate(QStringLiteral("storageservice"));
40 migrate
.setConfigFiles(QStringList() << QStringLiteral("storageservicerc") << QStringLiteral("storageservicemanager.notifyrc"));
41 migrate
.setUiFiles(QStringList() << QStringLiteral("storageserviceui.rc"));
44 KAboutData
aboutData(QStringLiteral("storageservicemanager"),
45 i18n("Storage Service Manager"),
46 QStringLiteral(KDEPIM_VERSION
),
47 i18n("Storage Service Manager"),
48 KAboutLicense::GPL_V2
,
49 i18n("Copyright © 2013-2015 storageservicemanager authors"));
50 aboutData
.addAuthor(i18n("Laurent Montel"), i18n("Maintainer"), QStringLiteral("montel@kde.org"));
52 QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
53 KAboutData::setApplicationData(aboutData
);
55 QCommandLineParser parser
;
56 parser
.addVersionOption();
57 parser
.addHelpOption();
58 aboutData
.setupCommandLine(&parser
);
60 aboutData
.processCommandLine(&parser
);
62 KDBusService
service(KDBusService::Unique
);
64 StorageServiceManagerMainWindow
*mw
= new StorageServiceManagerMainWindow();