Changeset View
Changeset View
Standalone View
Standalone View
components/keyboardlayout/keyboardlayout.h
Show All 17 Lines | |||||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KEYBOARDLAYOUT_H | 20 | #ifndef KEYBOARDLAYOUT_H | ||
21 | #define KEYBOARDLAYOUT_H | 21 | #define KEYBOARDLAYOUT_H | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | #include <QStringList> | 24 | #include <QStringList> | ||
25 | 25 | | |||
26 | class QDBusInterface; | 26 | class OrgKdeKeyboardLayoutsInterface; | ||
27 | class QDBusPendingCallWatcher; | 27 | class QDBusPendingCallWatcher; | ||
28 | 28 | | |||
29 | class KeyboardLayout : public QObject | 29 | class KeyboardLayout : public QObject | ||
30 | { | 30 | { | ||
31 | Q_OBJECT | 31 | Q_OBJECT | ||
32 | 32 | | |||
33 | Q_PROPERTY(QString currentLayout | 33 | Q_PROPERTY(QString currentLayout | ||
34 | READ currentLayout | 34 | READ currentLayout | ||
Show All 32 Lines | 62 | private Q_SLOTS: | |||
67 | void onCurrentLayoutReceived(QDBusPendingCallWatcher *watcher); | 67 | void onCurrentLayoutReceived(QDBusPendingCallWatcher *watcher); | ||
68 | void onCurrentLayoutDisplayNameReceived(QDBusPendingCallWatcher *watcher); | 68 | void onCurrentLayoutDisplayNameReceived(QDBusPendingCallWatcher *watcher); | ||
69 | void onLayoutsListReceived(QDBusPendingCallWatcher *watcher); | 69 | void onLayoutsListReceived(QDBusPendingCallWatcher *watcher); | ||
70 | 70 | | |||
71 | private: | 71 | private: | ||
72 | QStringList mLayouts; | 72 | QStringList mLayouts; | ||
73 | QString mCurrentLayout; | 73 | QString mCurrentLayout; | ||
74 | QString mCurrentLayoutDisplayName; | 74 | QString mCurrentLayoutDisplayName; | ||
75 | QDBusInterface *mIface; | 75 | OrgKdeKeyboardLayoutsInterface *mIface; | ||
76 | 76 | | |||
77 | }; | 77 | }; | ||
78 | 78 | | |||
79 | 79 | | |||
80 | #endif // KEYBOARDLAYOUT_H | 80 | #endif // KEYBOARDLAYOUT_H |