summaryrefslogtreecommitdiff
path: root/x11/ipc/client/ocopclient.h
Unidiff
Diffstat (limited to 'x11/ipc/client/ocopclient.h') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/ipc/client/ocopclient.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/x11/ipc/client/ocopclient.h b/x11/ipc/client/ocopclient.h
index 53018a5..ee2015a 100644
--- a/x11/ipc/client/ocopclient.h
+++ b/x11/ipc/client/ocopclient.h
@@ -11,25 +11,29 @@
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 * this is the static
25 * OCopClient
26 */
27 static OCOPClient* self();
24 /** 28 /**
25 * Occasionally I decide to start a Server from here 29 * Occasionally I decide to start a Server from here
26 */ 30 */
27 OCOPClient(const QString& pathToServer = QString::null, QObject* obj = 0l); 31 OCOPClient(const QString& pathToServer = QString::null, QObject* obj = 0l);
28 ~OCOPClient(); 32 ~OCOPClient();
29 33
30 bool isRegistered( const QCString& )const; 34 bool isRegistered( const QCString& )const;
31 void send( const QCString& chan, const QCString&, const QByteArray& msg ); 35 void send( const QCString& chan, const QCString&, const QByteArray& msg );
32 36
33 /** 37 /**
34 * add a channel and does connect to a signal 38 * add a channel and does connect to a signal
35 * callback is the object 39 * callback is the object
@@ -47,15 +51,16 @@ private slots:
47 void init(); 51 void init();
48 void init(const QCString& pa); 52 void init(const QCString& pa);
49 void newData(); 53 void newData();
50private: 54private:
51 void startUP(); 55 void startUP();
52 OCOPPacket packet()const; 56 OCOPPacket packet()const;
53 void call( const OCOPPacket& ); 57 void call( const OCOPPacket& );
54 58
55 QSocketNotifier* m_notify; 59 QSocketNotifier* m_notify;
56 int m_socket; 60 int m_socket;
57 int m_tries; 61 int m_tries;
58 62
63 static OCOPClient* m_self;
59}; 64};
60 65
61#endif 66#endif