Changeset View
Changeset View
Standalone View
Standalone View
src/service/Features.cpp
Show All 15 Lines | |||||
16 | * | 16 | * | ||
17 | * You should have received a copy of the GNU General Public License | 17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | // Self | 21 | // Self | ||
22 | #include "Features.h" | 22 | #include "Features.h" | ||
23 | 23 | | |||
24 | // KDE | 24 | // Qt | ||
25 | #include <kdbusconnectionpool.h> | 25 | #include <QDBusConnection> | ||
26 | 26 | | |||
27 | // Utils | 27 | // Utils | ||
28 | #include <utils/d_ptr_implementation.h> | 28 | #include <utils/d_ptr_implementation.h> | ||
29 | 29 | | |||
30 | // Local | 30 | // Local | ||
31 | #include "featuresadaptor.h" | 31 | #include "featuresadaptor.h" | ||
32 | #include "common/dbus/common.h" | 32 | #include "common/dbus/common.h" | ||
33 | 33 | | |||
34 | 34 | | |||
35 | class Features::Private { | 35 | class Features::Private { | ||
36 | }; | 36 | }; | ||
37 | 37 | | |||
38 | Features::Features(QObject *parent) | 38 | Features::Features(QObject *parent) | ||
39 | : Module(QStringLiteral("features"), parent) | 39 | : Module(QStringLiteral("features"), parent) | ||
40 | , d() | 40 | , d() | ||
41 | { | 41 | { | ||
42 | new FeaturesAdaptor(this); | 42 | new FeaturesAdaptor(this); | ||
43 | KDBusConnectionPool::threadConnection().registerObject( | 43 | QDBusConnection::sessionBus().registerObject( | ||
44 | KAMD_DBUS_OBJECT_PATH(Features), this); | 44 | KAMD_DBUS_OBJECT_PATH(Features), this); | ||
45 | } | 45 | } | ||
46 | 46 | | |||
47 | Features::~Features() | 47 | Features::~Features() | ||
48 | { | 48 | { | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | // Features object is just a gateway to the other KAMD modules. | 51 | // Features object is just a gateway to the other KAMD modules. | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |