-rw-r--r-- | x11/libqpe-x11/qt/qcopchannel_qws.cpp | 46 | ||||
-rw-r--r-- | x11/libqpe-x11/qt/qcopchannel_qws.h | 40 | ||||
-rw-r--r-- | x11/libqpe-x11/qt/qfontmanager_qws.h | 14 | ||||
-rw-r--r-- | x11/libqpe-x11/qt/qgfx_qws.h | 0 | ||||
-rw-r--r-- | x11/libqpe-x11/qt/qwindowsystem_qws.h | 18 | ||||
-rw-r--r-- | x11/libqpe-x11/qt/qwsdefaultdecoration_qws.h | 0 |
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 @@ | |||
1 | |||
2 | #include "../ipc/client/ocopclient.h" | ||
3 | |||
4 | #include <qcopchannel_qws.h> | ||
5 | |||
6 | QCopChannel::QCopChannel( const QCString& channel, QObject* parent, | ||
7 | const char* name ) | ||
8 | : QObject( parent, name ),m_chan(channel) { | ||
9 | init(); | ||
10 | } | ||
11 | QCopChannel::~QCopChannel() { | ||
12 | m_client->delChannel( m_chan ); | ||
13 | delete m_client; | ||
14 | } | ||
15 | void QCopChannel::init() { | ||
16 | m_client = new OCOPClient(QString::null, this ); | ||
17 | m_client->addChannel(m_chan ); | ||
18 | connect(m_client, SIGNAL(called(const QCString&, const QCString&, const QByteArray& ) ), | ||
19 | this, SLOT(rev(const QCString&, const QCString&, const QByteArray&) ) ); | ||
20 | } | ||
21 | QCString QCopChannel::channel()const { | ||
22 | return m_chan; | ||
23 | } | ||
24 | bool QCopChannel::isRegistered( const QCString& chan) { | ||
25 | OCOPClient client; | ||
26 | return client.isRegistered( chan ); | ||
27 | } | ||
28 | bool QCopChannel::send( const QCString& chan, const QCString& msg ) { | ||
29 | QByteArray ar(0); | ||
30 | return return sendLocally(chan, msg, ar ); | ||
31 | } | ||
32 | bool QCString::send( const QCString& chan, const QCString& msg, | ||
33 | const QByteArray& ar ) { | ||
34 | return sendLocally( chan, msg, ar ); | ||
35 | } | ||
36 | bool QCopChannel::sendLocally( const QCString& chan, const QCString& msg, | ||
37 | const QByteArray& ar ) { | ||
38 | OCOPClient client; | ||
39 | client.send( chan, msg, ar ); | ||
40 | |||
41 | return true; | ||
42 | } | ||
43 | void QCopChannel::rev( const QCString& chan, const QCString& msg, const QByteArray& ar ) { | ||
44 | if (chan == m_chan ) | ||
45 | emit received(chan, msg, ar ); | ||
46 | } | ||
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 @@ | |||
1 | #ifndef OPIE_QCOP_CHANNEL_QWS_H | ||
2 | #define OPIE_QCOP_CHANNEL_QWS_H | ||
3 | |||
4 | #include <qobject.h> | ||
5 | #include <qcstring.h> | ||
6 | |||
7 | class OCOPClient; | ||
8 | class QCopChannel : public QObject { | ||
9 | Q_OBJECT | ||
10 | public: | ||
11 | QCopChannel( const QCString& channel, QObject* parent = 0, | ||
12 | const char* name = 0); | ||
13 | virtual ~QCopChannel(); | ||
14 | |||
15 | QCString channel()const; | ||
16 | |||
17 | static bool isRegistered( const QCString& channel ); | ||
18 | static bool send( const QCString& channel, const QCString& msg ); | ||
19 | static bool send( const QCString& channel, const QCString& msg, | ||
20 | const QByteArray& ); | ||
21 | static bool sendLocally( const QCString& chan, const QCString& msg, | ||
22 | const QByteArray& data ); | ||
23 | |||
24 | signals: | ||
25 | void received( const QCString& msg, const QByteArray& ); | ||
26 | |||
27 | private slots: | ||
28 | void rev( const QCString& chan, const QCString&, const QByteArray& ); | ||
29 | |||
30 | private: | ||
31 | void init(); | ||
32 | OCOPClient* m_client; | ||
33 | /* the channel */ | ||
34 | QCString m_chan; | ||
35 | class Private; | ||
36 | Private *d; | ||
37 | |||
38 | }; | ||
39 | |||
40 | #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 @@ | |||
1 | #ifndef OPIE_QFONT_MANAGER_H | ||
2 | #define OPIE_QFONT_MANAGER_H | ||
3 | |||
4 | struct QFontFactory { | ||
5 | |||
6 | }; | ||
7 | struct QDiskFont { | ||
8 | |||
9 | }; | ||
10 | struct QFontManager { | ||
11 | }; | ||
12 | extern QFontManager *qt_fontmanager; | ||
13 | |||
14 | #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 @@ | |||
1 | #ifndef OPIE_QWINDOWSYSTEM_H | ||
2 | #define OPIE_QWINDOWSYSTEM_H | ||
3 | |||
4 | class QWSServer { | ||
5 | public: | ||
6 | QWSServer(){} | ||
7 | ~QWSServer(){} | ||
8 | static void sendKeyEvent(int, int, int, bool, bool ) { } | ||
9 | struct KeyboardFilter { | ||
10 | }; | ||
11 | static void setKeyboardFilter( KeyboardFilter* ) { | ||
12 | |||
13 | } | ||
14 | |||
15 | }; | ||
16 | |||
17 | |||
18 | #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 | |||