summaryrefslogtreecommitdiff
path: root/x11/ipc/client/ocopclient.h
authorzecke <zecke>2002-10-01 18:04:40 (UTC)
committer zecke <zecke>2002-10-01 18:04:40 (UTC)
commitde95e9ad55685630512a8ee67d6e9214af1b1071 (patch) (unidiff)
treea2f62044d8ba48aab1ca3f74376358f5aef352b3 /x11/ipc/client/ocopclient.h
parent1d9e6c252f74bfc8fcf6c80d8ce2a80cbd566d26 (diff)
downloadopie-de95e9ad55685630512a8ee67d6e9214af1b1071.zip
opie-de95e9ad55685630512a8ee67d6e9214af1b1071.tar.gz
opie-de95e9ad55685630512a8ee67d6e9214af1b1071.tar.bz2
The client should be working
it's complete but I never compiled it
Diffstat (limited to 'x11/ipc/client/ocopclient.h') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/ipc/client/ocopclient.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/x11/ipc/client/ocopclient.h b/x11/ipc/client/ocopclient.h
new file mode 100644
index 0000000..5300132
--- a/dev/null
+++ b/x11/ipc/client/ocopclient.h
@@ -0,0 +1,56 @@
1#ifndef OPIE_OCOP_CLIENT_H
2#define OPIE_OCOP_CLIENT_H
3
4
5#include <qobject.h>
6#include <qcstring.h>
7#include <qmap.h>
8#include <qsignal.h>
9#include <qstring.h>
10#include <qsocketnotifier.h>
11
12
13/**
14 * This is the OCOP client
15 * It currently only supports
16 * asking if a Channel is registered,
17 * calling and receiving calls
18 */
19class OCOPPacket;
20class OCOPClient : public QObject{
21 Q_OBJECT
22public:
23
24 /**
25 * Occasionally I decide to start a Server from here
26 */
27 OCOPClient(const QString& pathToServer = QString::null, QObject* obj = 0l);
28 ~OCOPClient();
29
30 bool isRegistered( const QCString& )const;
31 void send( const QCString& chan, const QCString&, const QByteArray& msg );
32
33 /**
34 * add a channel and does connect to a signal
35 * callback is the object
36 * slot is the SLOT()
37 */
38 void addChannel( const QCString& channel );
39 void delChannel( const QCString& channel );
40/* no direct signals due the design */
41signals:
42 void called(const QCString&, const QCString&, const QByteArray );
43private slots:
44 void init(const QCString& pa);
45 void newData();
46private:
47 OCOPPacket packet();
48 void call( const OCOPPacket& );
49
50 QSocketNotifier* m_notify;
51 int m_socket;
52private slots:
53
54};
55
56#endif