Diffstat (limited to 'x11/libqpe-x11/qt/qcopchannel_qws.h') (more/less context) (show 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 94b199e..c1220cb 100644 --- a/x11/libqpe-x11/qt/qcopchannel_qws.h +++ b/x11/libqpe-x11/qt/qcopchannel_qws.h | |||
@@ -1,18 +1,19 @@ | |||
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 | #include <qlist.h> |
7 | #include <qmap.h> | ||
7 | 8 | ||
8 | class OCOPClient; | 9 | class OCOPClient; |
9 | class QCopChannel : public QObject { | 10 | class QCopChannel : public QObject { |
10 | Q_OBJECT | 11 | Q_OBJECT |
11 | public: | 12 | public: |
12 | QCopChannel( const QCString& channel, QObject* parent = 0, | 13 | QCopChannel( const QCString& channel, QObject* parent = 0, |
13 | const char* name = 0); | 14 | const char* name = 0); |
14 | virtual ~QCopChannel(); | 15 | virtual ~QCopChannel(); |
15 | 16 | ||
16 | QCString channel()const; | 17 | QCString channel()const; |
17 | 18 | ||
18 | static bool isRegistered( const QCString& channel ); | 19 | static bool isRegistered( const QCString& channel ); |
@@ -21,22 +22,23 @@ public: | |||
21 | const QByteArray& ); | 22 | const QByteArray& ); |
22 | static bool sendLocally( const QCString& chan, const QCString& msg, | 23 | static bool sendLocally( const QCString& chan, const QCString& msg, |
23 | const QByteArray& data ); | 24 | const QByteArray& data ); |
24 | void receive( const QCString& msg, const QByteArray& ar ); | 25 | void receive( const QCString& msg, const QByteArray& ar ); |
25 | 26 | ||
26 | signals: | 27 | signals: |
27 | void received( const QCString& msg, const QByteArray& ); | 28 | void received( const QCString& msg, const QByteArray& ); |
28 | 29 | ||
29 | private slots: | 30 | private slots: |
30 | void rev( const QCString& chan, const QCString&, const QByteArray& ); | 31 | void rev( const QCString& chan, const QCString&, const QByteArray& ); |
31 | 32 | ||
32 | private: | 33 | private: |
33 | void init(); | 34 | bool isRegisteredLocally( const QCString& str); |
34 | static QList<QCopChannel> *m_list; | 35 | static QList<QCopChannel> *m_list; |
36 | static QMap<QCString, int> m_refCount; | ||
35 | /* the channel */ | 37 | /* the channel */ |
36 | QCString m_chan; | 38 | QCString m_chan; |
37 | class Private; | 39 | class Private; |
38 | Private *d; | 40 | Private *d; |
39 | 41 | ||
40 | }; | 42 | }; |
41 | 43 | ||
42 | #endif | 44 | #endif |