diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kxkb/extension.h | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kxkb/extension.h')
-rw-r--r-- | kxkb/extension.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/kxkb/extension.h b/kxkb/extension.h new file mode 100644 index 000000000..24a0324bc --- /dev/null +++ b/kxkb/extension.h @@ -0,0 +1,37 @@ +#ifndef __EXTENSION_H__ +#define __EXTENSION_H__ + +#include <X11/Xlib.h> + + +class XKBExtension +{ +public: + XKBExtension(Display *display=NULL); + ~XKBExtension(); + bool init(); + void reset(); + + static bool setXkbOptions(const QString& options, bool resetOldOptions); + bool setLayout(const QString& model, + const QString& layout, const QString& variant, + const QString& includeGroup, bool useCompiledLayouts=true); + bool setGroup(unsigned int group); + unsigned int getGroup() const; + +private: + Display *m_dpy; + QString m_tempDir; + static QMap<QString, FILE*> fileCache; + + bool setLayoutInternal(const QString& model, + const QString& layout, const QString& variant, + const QString& includeGroup); + bool compileCurrentLayout(const QString& layoutKey); + bool setCompiledLayout(const QString& layoutKey); + + QString getPrecompiledLayoutFilename(const QString& layoutKey); +// void deletePrecompiledLayouts(); +}; + +#endif |