summaryrefslogtreecommitdiff
path: root/x11/libqpe-x11/qt
authorzecke <zecke>2002-10-15 21:38:43 (UTC)
committer zecke <zecke>2002-10-15 21:38:43 (UTC)
commitb774e015816e51ac65e5d1c685306f8404a3a19e (patch) (unidiff)
treeccb4881ffce2a027b6c0b95854623bb713b69554 /x11/libqpe-x11/qt
parentfb99aec5215da635abfa28288d170f110114bba3 (diff)
downloadopie-b774e015816e51ac65e5d1c685306f8404a3a19e.zip
opie-b774e015816e51ac65e5d1c685306f8404a3a19e.tar.gz
opie-b774e015816e51ac65e5d1c685306f8404a3a19e.tar.bz2
More OPIE X11 Stuff
Some empty stubs to compile against Qt2/X it will not link though
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 @@
1
2#include "../ipc/client/ocopclient.h"
3
4#include <qcopchannel_qws.h>
5
6QCopChannel::QCopChannel( const QCString& channel, QObject* parent,
7 const char* name )
8 : QObject( parent, name ),m_chan(channel) {
9 init();
10}
11QCopChannel::~QCopChannel() {
12 m_client->delChannel( m_chan );
13 delete m_client;
14}
15void 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}
21QCString QCopChannel::channel()const {
22 return m_chan;
23}
24bool QCopChannel::isRegistered( const QCString& chan) {
25 OCOPClient client;
26 return client.isRegistered( chan );
27}
28bool QCopChannel::send( const QCString& chan, const QCString& msg ) {
29 QByteArray ar(0);
30 return return sendLocally(chan, msg, ar );
31}
32bool QCString::send( const QCString& chan, const QCString& msg,
33 const QByteArray& ar ) {
34 return sendLocally( chan, msg, ar );
35}
36bool 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}
43void 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
7class OCOPClient;
8class QCopChannel : public QObject {
9 Q_OBJECT
10public:
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
24signals:
25 void received( const QCString& msg, const QByteArray& );
26
27private slots:
28 void rev( const QCString& chan, const QCString&, const QByteArray& );
29
30private:
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
4struct QFontFactory {
5
6};
7struct QDiskFont {
8
9};
10struct QFontManager {
11};
12extern 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
4class QWSServer {
5public:
6QWSServer(){}
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