CONFIG += mobility
MOBILITY += connectivity
+CONFIG += link_pkgconfig
+PKGCONFIG += xtst
+
# Speed up launching on MeeGo/Harmattan when using applauncherd daemon
# CONFIG += qdeclarative-boostable
# 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)
qtc_packaging/debian_harmattan/changelog
HEADERS += \
- btconnector.h
+ btconnector.h \
+ xtstadapter.h
--- /dev/null
+#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