Changeset View
Changeset View
Standalone View
Standalone View
components/keyboardlayout/keyboardlayout.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include <QDebug> | 25 | #include <QDebug> | ||
26 | #include "debug.h" | 26 | #include "debug.h" | ||
27 | 27 | | |||
28 | KeyboardLayout::KeyboardLayout(QObject* parent) | 28 | KeyboardLayout::KeyboardLayout(QObject* parent) | ||
29 | : QObject(parent) | 29 | : QObject(parent) | ||
30 | , mIface(0) | 30 | , mIface(0) | ||
31 | { | 31 | { | ||
32 | mIface = new QDBusInterface(QStringLiteral("org.kde.kded5"), | 32 | mIface = new QDBusInterface(QStringLiteral("org.kde.keyboard"), | ||
33 | QStringLiteral("/modules/keyboard"), | 33 | QStringLiteral("/Layouts"), | ||
34 | QStringLiteral("org.kde.KeyboardLayouts"), | 34 | QStringLiteral("org.kde.KeyboardLayouts"), | ||
35 | QDBusConnection::sessionBus(), | 35 | QDBusConnection::sessionBus(), | ||
36 | this); | 36 | this); | ||
37 | if (!mIface->isValid()) { | 37 | if (!mIface->isValid()) { | ||
38 | delete mIface; | 38 | delete mIface; | ||
39 | mIface = 0; | 39 | mIface = 0; | ||
40 | return; | 40 | return; | ||
41 | } | 41 | } | ||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |