author | zecke <zecke> | 2002-10-16 18:24:48 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-16 18:24:48 (UTC) |
commit | 9047650faad7e64e0a36553dfe04dc7ad084f095 (patch) (unidiff) | |
tree | b79a65f224b329d6dcc559d8b72d564ccce4a3c8 /x11/libqpe-x11/qt/qcopchannel_qws.h | |
parent | 1a305f211913ce4a4d73ed0b36a0be535c0e03ec (diff) | |
download | opie-9047650faad7e64e0a36553dfe04dc7ad084f095.zip opie-9047650faad7e64e0a36553dfe04dc7ad084f095.tar.gz opie-9047650faad7e64e0a36553dfe04dc7ad084f095.tar.bz2 |
More IPC integtration
OCOPClient::self() added so we keep
the connections low
Diffstat (limited to 'x11/libqpe-x11/qt/qcopchannel_qws.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | x11/libqpe-x11/qt/qcopchannel_qws.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/x11/libqpe-x11/qt/qcopchannel_qws.h b/x11/libqpe-x11/qt/qcopchannel_qws.h index b0a6ce0..94b199e 100644 --- a/x11/libqpe-x11/qt/qcopchannel_qws.h +++ b/x11/libqpe-x11/qt/qcopchannel_qws.h | |||
@@ -1,40 +1,42 @@ | |||
1 | #ifndef OPIE_QCOP_CHANNEL_QWS_H | 1 | #ifndef OPIE_QCOP_CHANNEL_QWS_H |
2 | #define OPIE_QCOP_CHANNEL_QWS_H | 2 | #define OPIE_QCOP_CHANNEL_QWS_H |
3 | 3 | ||
4 | #include <qobject.h> | 4 | #include <qobject.h> |
5 | #include <qcstring.h> | 5 | #include <qcstring.h> |
6 | #include <qlist.h> | ||
6 | 7 | ||
7 | class OCOPClient; | 8 | class OCOPClient; |
8 | class QCopChannel : public QObject { | 9 | class QCopChannel : public QObject { |
9 | Q_OBJECT | 10 | Q_OBJECT |
10 | public: | 11 | public: |
11 | QCopChannel( const QCString& channel, QObject* parent = 0, | 12 | QCopChannel( const QCString& channel, QObject* parent = 0, |
12 | const char* name = 0); | 13 | const char* name = 0); |
13 | virtual ~QCopChannel(); | 14 | virtual ~QCopChannel(); |
14 | 15 | ||
15 | QCString channel()const; | 16 | QCString channel()const; |
16 | 17 | ||
17 | static bool isRegistered( const QCString& channel ); | 18 | 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 ); |
19 | static bool send( const QCString& channel, const QCString& msg, | 20 | static bool send( const QCString& channel, const QCString& msg, |
20 | const QByteArray& ); | 21 | const QByteArray& ); |
21 | static bool sendLocally( const QCString& chan, const QCString& msg, | 22 | static bool sendLocally( const QCString& chan, const QCString& msg, |
22 | const QByteArray& data ); | 23 | const QByteArray& data ); |
24 | void receive( const QCString& msg, const QByteArray& ar ); | ||
23 | 25 | ||
24 | signals: | 26 | signals: |
25 | void received( const QCString& msg, const QByteArray& ); | 27 | void received( const QCString& msg, const QByteArray& ); |
26 | 28 | ||
27 | private slots: | 29 | private slots: |
28 | void rev( const QCString& chan, const QCString&, const QByteArray& ); | 30 | void rev( const QCString& chan, const QCString&, const QByteArray& ); |
29 | 31 | ||
30 | private: | 32 | private: |
31 | void init(); | 33 | void init(); |
32 | OCOPClient* m_client; | 34 | static QList<QCopChannel> *m_list; |
33 | /* the channel */ | 35 | /* the channel */ |
34 | QCString m_chan; | 36 | QCString m_chan; |
35 | class Private; | 37 | class Private; |
36 | Private *d; | 38 | Private *d; |
37 | 39 | ||
38 | }; | 40 | }; |
39 | 41 | ||
40 | #endif | 42 | #endif |