blob: 9a3d2da8e456b2a80cd5992938c5d0c45a848159 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 | #ifndef __EXTENSION_H__
#define __EXTENSION_H__
#include <X11/Xlib.h>
#include <tqobject.h>
#include "kxkbconfig.h"
class XKBExtension : public TQObject
{
    TQ_OBJECT
public:
	XKBExtension(Display *display=NULL);
	~XKBExtension();
	bool init();
	static bool setXkbOptions(const XkbOptions options);
	static TQString getServerOptions();
	bool setGroup(unsigned int group);
	unsigned int getGroup() const;
	void processXEvent(XEvent *ev);
private:
    Display *m_dpy;
	TQString m_tempDir;
	int m_keycode;
	static TQMap<TQString, FILE*> fileCache;
signals:
	void groupChanged(uint group);
};
#endif
 |