summaryrefslogtreecommitdiff
path: root/x11/libqpe-x11/qt
Side-by-side diff
Diffstat (limited to 'x11/libqpe-x11/qt') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/libqpe-x11/qt/qcopchannel_qws.cpp46
-rw-r--r--x11/libqpe-x11/qt/qcopchannel_qws.h40
-rw-r--r--x11/libqpe-x11/qt/qfontmanager_qws.h14
-rw-r--r--x11/libqpe-x11/qt/qgfx_qws.h0
-rw-r--r--x11/libqpe-x11/qt/qwindowsystem_qws.h18
-rw-r--r--x11/libqpe-x11/qt/qwsdefaultdecoration_qws.h0
6 files changed, 118 insertions, 0 deletions
diff --git a/x11/libqpe-x11/qt/qcopchannel_qws.cpp b/x11/libqpe-x11/qt/qcopchannel_qws.cpp
new file mode 100644
index 0000000..efbef3f
--- a/dev/null
+++ b/x11/libqpe-x11/qt/qcopchannel_qws.cpp
@@ -0,0 +1,46 @@
+
+#include "../ipc/client/ocopclient.h"
+
+#include <qcopchannel_qws.h>
+
+QCopChannel::QCopChannel( const QCString& channel, QObject* parent,
+ const char* name )
+ : QObject( parent, name ),m_chan(channel) {
+ init();
+}
+QCopChannel::~QCopChannel() {
+ m_client->delChannel( m_chan );
+ delete m_client;
+}
+void QCopChannel::init() {
+ m_client = new OCOPClient(QString::null, this );
+ m_client->addChannel(m_chan );
+ connect(m_client, SIGNAL(called(const QCString&, const QCString&, const QByteArray& ) ),
+ this, SLOT(rev(const QCString&, const QCString&, const QByteArray&) ) );
+}
+QCString QCopChannel::channel()const {
+ return m_chan;
+}
+bool QCopChannel::isRegistered( const QCString& chan) {
+ OCOPClient client;
+ return client.isRegistered( chan );
+}
+bool QCopChannel::send( const QCString& chan, const QCString& msg ) {
+ QByteArray ar(0);
+ return return sendLocally(chan, msg, ar );
+}
+bool QCString::send( const QCString& chan, const QCString& msg,
+ const QByteArray& ar ) {
+ return sendLocally( chan, msg, ar );
+}
+bool QCopChannel::sendLocally( const QCString& chan, const QCString& msg,
+ const QByteArray& ar ) {
+ OCOPClient client;
+ client.send( chan, msg, ar );
+
+ return true;
+}
+void QCopChannel::rev( const QCString& chan, const QCString& msg, const QByteArray& ar ) {
+ if (chan == m_chan )
+ emit received(chan, msg, ar );
+}
diff --git a/x11/libqpe-x11/qt/qcopchannel_qws.h b/x11/libqpe-x11/qt/qcopchannel_qws.h
new file mode 100644
index 0000000..b0a6ce0
--- a/dev/null
+++ b/x11/libqpe-x11/qt/qcopchannel_qws.h
@@ -0,0 +1,40 @@
+#ifndef OPIE_QCOP_CHANNEL_QWS_H
+#define OPIE_QCOP_CHANNEL_QWS_H
+
+#include <qobject.h>
+#include <qcstring.h>
+
+class OCOPClient;
+class QCopChannel : public QObject {
+ Q_OBJECT
+public:
+ QCopChannel( const QCString& channel, QObject* parent = 0,
+ const char* name = 0);
+ virtual ~QCopChannel();
+
+ QCString channel()const;
+
+ static bool isRegistered( const QCString& channel );
+ static bool send( const QCString& channel, const QCString& msg );
+ static bool send( const QCString& channel, const QCString& msg,
+ const QByteArray& );
+ static bool sendLocally( const QCString& chan, const QCString& msg,
+ const QByteArray& data );
+
+signals:
+ void received( const QCString& msg, const QByteArray& );
+
+private slots:
+ void rev( const QCString& chan, const QCString&, const QByteArray& );
+
+private:
+ void init();
+ OCOPClient* m_client;
+ /* the channel */
+ QCString m_chan;
+ class Private;
+ Private *d;
+
+};
+
+#endif
diff --git a/x11/libqpe-x11/qt/qfontmanager_qws.h b/x11/libqpe-x11/qt/qfontmanager_qws.h
new file mode 100644
index 0000000..6311b92
--- a/dev/null
+++ b/x11/libqpe-x11/qt/qfontmanager_qws.h
@@ -0,0 +1,14 @@
+#ifndef OPIE_QFONT_MANAGER_H
+#define OPIE_QFONT_MANAGER_H
+
+struct QFontFactory {
+
+};
+struct QDiskFont {
+
+};
+struct QFontManager {
+};
+extern QFontManager *qt_fontmanager;
+
+#endif \ No newline at end of file
diff --git a/x11/libqpe-x11/qt/qgfx_qws.h b/x11/libqpe-x11/qt/qgfx_qws.h
new file mode 100644
index 0000000..e69de29
--- a/dev/null
+++ b/x11/libqpe-x11/qt/qgfx_qws.h
diff --git a/x11/libqpe-x11/qt/qwindowsystem_qws.h b/x11/libqpe-x11/qt/qwindowsystem_qws.h
new file mode 100644
index 0000000..7bc43c5
--- a/dev/null
+++ b/x11/libqpe-x11/qt/qwindowsystem_qws.h
@@ -0,0 +1,18 @@
+#ifndef OPIE_QWINDOWSYSTEM_H
+#define OPIE_QWINDOWSYSTEM_H
+
+class QWSServer {
+public:
+QWSServer(){}
+~QWSServer(){}
+ static void sendKeyEvent(int, int, int, bool, bool ) { }
+ struct KeyboardFilter {
+ };
+ static void setKeyboardFilter( KeyboardFilter* ) {
+
+ }
+
+};
+
+
+#endif
diff --git a/x11/libqpe-x11/qt/qwsdefaultdecoration_qws.h b/x11/libqpe-x11/qt/qwsdefaultdecoration_qws.h
new file mode 100644
index 0000000..e69de29
--- a/dev/null
+++ b/x11/libqpe-x11/qt/qwsdefaultdecoration_qws.h