From 45c6a8ff1b012e1523ab68af8bbcb91726e69654 Mon Sep 17 00:00:00 2001 From: Ruediger Gad Date: Thu, 12 Apr 2012 13:24:47 +0200 Subject: [PATCH] Add first stub of adapter for sending X keyboard events. --- QZeeControl.pro | 9 +++++++-- xtstadapter.cpp | 1 + xtstadapter.h | 28 ++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 xtstadapter.cpp create mode 100644 xtstadapter.h diff --git a/QZeeControl.pro b/QZeeControl.pro index 7e2fdb3..ef6eab4 100644 --- a/QZeeControl.pro +++ b/QZeeControl.pro @@ -23,6 +23,9 @@ symbian:TARGET.CAPABILITY += NetworkServices CONFIG += mobility MOBILITY += connectivity +CONFIG += link_pkgconfig +PKGCONFIG += xtst + # 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 \ - btconnector.cpp + btconnector.cpp \ + xtstadapter.cpp # 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 += \ - btconnector.h + btconnector.h \ + xtstadapter.h diff --git a/xtstadapter.cpp b/xtstadapter.cpp new file mode 100644 index 0000000..0bfe779 --- /dev/null +++ b/xtstadapter.cpp @@ -0,0 +1 @@ +#include "xtstadapter.h" diff --git a/xtstadapter.h b/xtstadapter.h new file mode 100644 index 0000000..65c108b --- /dev/null +++ b/xtstadapter.h @@ -0,0 +1,28 @@ +#ifndef XTSTADAPTER_H +#define XTSTADAPTER_H + +#include + +#include +#include + +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 -- 1.7.9.5