summaryrefslogtreecommitdiffstats
path: root/kxkb/extension.h
blob: fa482c2226333e337e9c6703f88eb73fc2dd7c4e (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
#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);
	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