summaryrefslogtreecommitdiffstats
path: root/kxkb/kxkb.h
diff options
context:
space:
mode:
Diffstat (limited to 'kxkb/kxkb.h')
-rw-r--r--kxkb/kxkb.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/kxkb/kxkb.h b/kxkb/kxkb.h
index ddde9a6c4..803057f61 100644
--- a/kxkb/kxkb.h
+++ b/kxkb/kxkb.h
@@ -31,7 +31,12 @@ DESCRIPTION
#include <tqdict.h>
#include <tqptrqueue.h>
-#include <kuniqueapplication.h>
+#include <tdeuniqueapplication.h>
+#ifdef WITH_TDEHWLIB
+#include <tdegenericdevice.h>
+#else
+#define TDEGenericDevice void
+#endif
#include "kxkbtraywindow.h"
#include "kxkbconfig.h"
@@ -47,7 +52,7 @@ class LayoutMap;
and switching layouts
*/
-class KXKBApp : public KUniqueApplication
+class KXKBApp : public TDEUniqueApplication
{
TQ_OBJECT
K_DCOP
@@ -72,19 +77,23 @@ public slots:
protected slots:
void menuActivated(int id);
void windowChanged(WId winId);
- void layoutApply();
void slotGroupChanged(uint group);
void slotSettingsChanged(int category);
- void maybeShowLayoutNotification();
+ void showLayoutNotification();
+ void showErrorNotification(TQString layout);
+
+ void hardwareChanged(TDEGenericDevice *dev);
-protected:
- // Read settings, and apply them.
- bool settingsRead();
+ void readSettings();
+ void applyXkbOptions();
+ void slotSyncXkbOptions();
+ void syncXkbOptions();
private:
void initTray();
bool x11EventFilter(XEvent *e);
+ bool isKMiloAvailable();
private:
KxkbConfig kxkbConfig;
@@ -96,7 +105,7 @@ private:
XKBExtension *m_extension;
XkbRules *m_rules;
- KxkbLabelController *m_tray;
+ KxkbSystemTray *m_tray;
TDEGlobalAccel *keys;
KWinModule* kWinModule;
bool m_forceSetXKBMap;