Add first stub of adapter for sending X keyboard events.
authorRuediger Gad <rgad@fb2.fh-frankfurt.de>
Thu, 12 Apr 2012 11:24:47 +0000 (13:24 +0200)
committerRuediger Gad <rgad@fb2.fh-frankfurt.de>
Thu, 12 Apr 2012 11:24:47 +0000 (13:24 +0200)
QZeeControl.pro
xtstadapter.cpp [new file with mode: 0644]
xtstadapter.h [new file with mode: 0644]

index 7e2fdb3..ef6eab4 100644 (file)
@@ -23,6 +23,9 @@ symbian:TARGET.CAPABILITY += NetworkServices
 CONFIG += mobility
 MOBILITY += connectivity
 
 CONFIG += mobility
 MOBILITY += connectivity
 
+CONFIG += link_pkgconfig
+PKGCONFIG += xtst
+
 # Speed up launching on MeeGo/Harmattan when using applauncherd daemon
 # CONFIG += qdeclarative-boostable
 
 # Speed up launching on MeeGo/Harmattan when using applauncherd daemon
 # CONFIG += qdeclarative-boostable
 
@@ -31,7 +34,8 @@ MOBILITY += connectivity
 
 # The .cpp file which was generated for your project. Feel free to hack it.
 SOURCES += main.cpp \
 
 # The .cpp file which was generated for your project. Feel free to hack it.
 SOURCES += main.cpp \
-    btconnector.cpp
+    btconnector.cpp \
+    xtstadapter.cpp
 
 # Please do not modify the following two lines. Required for deployment.
 include(qmlapplicationviewer/qmlapplicationviewer.pri)
 
 # Please do not modify the following two lines. Required for deployment.
 include(qmlapplicationviewer/qmlapplicationviewer.pri)
@@ -47,4 +51,5 @@ OTHER_FILES += \
     qtc_packaging/debian_harmattan/changelog
 
 HEADERS += \
     qtc_packaging/debian_harmattan/changelog
 
 HEADERS += \
-    btconnector.h
+    btconnector.h \
+    xtstadapter.h
diff --git a/xtstadapter.cpp b/xtstadapter.cpp
new file mode 100644 (file)
index 0000000..0bfe779
--- /dev/null
@@ -0,0 +1 @@
+#include "xtstadapter.h"
diff --git a/xtstadapter.h b/xtstadapter.h
new file mode 100644 (file)
index 0000000..65c108b
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef XTSTADAPTER_H
+#define XTSTADAPTER_H
+
+#include <QObject>
+
+#include <X11/extensions/XTest.h>
+#include <X11/Xlib.h>
+
+class XtstAdapter : public QObject
+{
+    Q_OBJECT
+public:
+    explicit XtstAdapter(QObject *parent = 0)
+        : QObject(parent){
+        display = XOpenDisplay(0);
+    }
+    
+signals:
+    
+public slots:
+
+private:
+    Display *display;
+
+    
+};
+
+#endif // XTSTADAPTER_H