summaryrefslogtreecommitdiff
path: root/x11/ipc
authorzecke <zecke>2002-10-15 21:38:43 (UTC)
committer zecke <zecke>2002-10-15 21:38:43 (UTC)
commitb774e015816e51ac65e5d1c685306f8404a3a19e (patch) (unidiff)
treeccb4881ffce2a027b6c0b95854623bb713b69554 /x11/ipc
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/ipc') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/ipc/client/ocopclient.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/x11/ipc/client/ocopclient.h b/x11/ipc/client/ocopclient.h
index 5300132..db04d37 100644
--- a/x11/ipc/client/ocopclient.h
+++ b/x11/ipc/client/ocopclient.h
@@ -8,49 +8,52 @@
8#include <qsignal.h> 8#include <qsignal.h>
9#include <qstring.h> 9#include <qstring.h>
10#include <qsocketnotifier.h> 10#include <qsocketnotifier.h>
11 11
12 12
13/** 13/**
14 * This is the OCOP client 14 * This is the OCOP client
15 * It currently only supports 15 * It currently only supports
16 * asking if a Channel is registered, 16 * asking if a Channel is registered,
17 * calling and receiving calls 17 * calling and receiving calls
18 */ 18 */
19class OCOPPacket; 19class OCOPPacket;
20class OCOPClient : public QObject{ 20class OCOPClient : public QObject{
21 Q_OBJECT 21 Q_OBJECT
22public: 22public:
23 23
24 /** 24 /**
25 * Occasionally I decide to start a Server from here 25 * Occasionally I decide to start a Server from here
26 */ 26 */
27 OCOPClient(const QString& pathToServer = QString::null, QObject* obj = 0l); 27 OCOPClient(const QString& pathToServer = QString::null, QObject* obj = 0l);
28 ~OCOPClient(); 28 ~OCOPClient();
29 29
30 bool isRegistered( const QCString& )const; 30 bool isRegistered( const QCString& )const;
31 void send( const QCString& chan, const QCString&, const QByteArray& msg ); 31 void send( const QCString& chan, const QCString&, const QByteArray& msg );
32 32
33 /** 33 /**
34 * add a channel and does connect to a signal 34 * add a channel and does connect to a signal
35 * callback is the object 35 * callback is the object
36 * slot is the SLOT() 36 * slot is the SLOT()
37 */ 37 */
38 void addChannel( const QCString& channel ); 38 void addChannel( const QCString& channel );
39 void delChannel( const QCString& channel ); 39 void delChannel( const QCString& channel );
40
41 /* make it singleton? */
42 //static OCOPClient* self();
40/* no direct signals due the design */ 43/* no direct signals due the design */
41signals: 44signals:
42 void called(const QCString&, const QCString&, const QByteArray ); 45 void called(const QCString&, const QCString&, const QByteArray& );
43private slots: 46private slots:
44 void init(const QCString& pa); 47 void init(const QCString& pa);
45 void newData(); 48 void newData();
46private: 49private:
47 OCOPPacket packet(); 50 OCOPPacket packet();
48 void call( const OCOPPacket& ); 51 void call( const OCOPPacket& );
49 52
50 QSocketNotifier* m_notify; 53 QSocketNotifier* m_notify;
51 int m_socket; 54 int m_socket;
52private slots: 55private slots:
53 56
54}; 57};
55 58
56#endif 59#endif