Changeset View
Changeset View
Standalone View
Standalone View
kuiserver/main.cpp
Show All 21 Lines | |||||
22 | */ | 22 | */ | ||
23 | 23 | | |||
24 | #include "uiserver.h" | 24 | #include "uiserver.h" | ||
25 | #include "uiserver_p.h" | 25 | #include "uiserver_p.h" | ||
26 | #include "progresslistmodel.h" | 26 | #include "progresslistmodel.h" | ||
27 | 27 | | |||
28 | #include <kdbusservice.h> | 28 | #include <kdbusservice.h> | ||
29 | 29 | | |||
30 | #include <kworkspace.h> | ||||
31 | | ||||
30 | #include <QCommandLineParser> | 32 | #include <QCommandLineParser> | ||
31 | 33 | | |||
32 | Q_LOGGING_CATEGORY(KUISERVER, "kuiserver", QtInfoMsg) | 34 | Q_LOGGING_CATEGORY(KUISERVER, "kuiserver", QtInfoMsg) | ||
33 | 35 | | |||
34 | extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) | 36 | extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) | ||
35 | { | 37 | { | ||
38 | KWorkSpace::platformDetection(argc, argv); | ||||
36 | QApplication app(argc, argv); | 39 | QApplication app(argc, argv); | ||
37 | app.setApplicationName(QStringLiteral("kuiserver")); | 40 | app.setApplicationName(QStringLiteral("kuiserver")); | ||
38 | app.setApplicationVersion(QStringLiteral("2.0")); | 41 | app.setApplicationVersion(QStringLiteral("2.0")); | ||
39 | app.setOrganizationDomain(QStringLiteral("kde.org")); | 42 | app.setOrganizationDomain(QStringLiteral("kde.org")); | ||
40 | 43 | | |||
41 | QCommandLineParser parser; | 44 | QCommandLineParser parser; | ||
42 | parser.addHelpOption(); | 45 | parser.addHelpOption(); | ||
43 | parser.addVersionOption(); | 46 | parser.addVersionOption(); | ||
44 | ProgressListModel model; | 47 | ProgressListModel model; | ||
45 | KDBusService service(KDBusService::Unique); | 48 | KDBusService service(KDBusService::Unique); | ||
46 | 49 | | |||
47 | return app.exec(); | 50 | return app.exec(); | ||
48 | } | 51 | } |