Changeset View
Changeset View
Standalone View
Standalone View
src/service/plugins/slc/SlcPlugin.cpp
Show All 15 Lines | |||||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | // Self | 18 | // Self | ||
19 | #include "SlcPlugin.h" | 19 | #include "SlcPlugin.h" | ||
20 | 20 | | |||
21 | // Qt | 21 | // Qt | ||
22 | #include <QDBusConnection> | 22 | #include <QDBusConnection> | ||
23 | 23 | | |||
24 | // KDE | | |||
25 | #include <kdbusconnectionpool.h> | | |||
26 | | ||||
27 | // Local | 24 | // Local | ||
28 | #include "slcadaptor.h" | 25 | #include "slcadaptor.h" | ||
29 | 26 | | |||
30 | KAMD_EXPORT_PLUGIN(slcplugin, SlcPlugin, "kactivitymanagerd-plugin-slc.json") | 27 | KAMD_EXPORT_PLUGIN(slcplugin, SlcPlugin, "kactivitymanagerd-plugin-slc.json") | ||
31 | 28 | | |||
32 | SlcPlugin::SlcPlugin(QObject *parent, const QVariantList &args) | 29 | SlcPlugin::SlcPlugin(QObject *parent, const QVariantList &args) | ||
33 | : Plugin(parent) | 30 | : Plugin(parent) | ||
34 | { | 31 | { | ||
35 | Q_UNUSED(args); | 32 | Q_UNUSED(args); | ||
36 | 33 | | |||
37 | new SLCAdaptor(this); | 34 | new SLCAdaptor(this); | ||
38 | KDBusConnectionPool::threadConnection().registerObject(QStringLiteral("/SLC"), this); | 35 | QDBusConnection::sessionBus().registerObject(QStringLiteral("/SLC"), this); | ||
39 | } | 36 | } | ||
40 | 37 | | |||
41 | SlcPlugin::~SlcPlugin() | 38 | SlcPlugin::~SlcPlugin() | ||
42 | { | 39 | { | ||
43 | } | 40 | } | ||
44 | 41 | | |||
45 | QString SlcPlugin::focussedResourceURI() const | 42 | QString SlcPlugin::focussedResourceURI() const | ||
46 | { | 43 | { | ||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |