summaryrefslogtreecommitdiff
path: root/x11/libqpe-x11/qt/qcopchannel_qws.h
Unidiff
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.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/x11/libqpe-x11/qt/qcopchannel_qws.h b/x11/libqpe-x11/qt/qcopchannel_qws.h
new file mode 100644
index 0000000..b0a6ce0
--- a/dev/null
+++ b/x11/libqpe-x11/qt/qcopchannel_qws.h
@@ -0,0 +1,40 @@
1#ifndef OPIE_QCOP_CHANNEL_QWS_H
2#define OPIE_QCOP_CHANNEL_QWS_H
3
4#include <qobject.h>
5#include <qcstring.h>
6
7class OCOPClient;
8class QCopChannel : public QObject {
9 Q_OBJECT
10public:
11 QCopChannel( const QCString& channel, QObject* parent = 0,
12 const char* name = 0);
13 virtual ~QCopChannel();
14
15 QCString channel()const;
16
17 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,
20 const QByteArray& );
21 static bool sendLocally( const QCString& chan, const QCString& msg,
22 const QByteArray& data );
23
24signals:
25 void received( const QCString& msg, const QByteArray& );
26
27private slots:
28 void rev( const QCString& chan, const QCString&, const QByteArray& );
29
30private:
31 void init();
32 OCOPClient* m_client;
33 /* the channel */
34 QCString m_chan;
35 class Private;
36 Private *d;
37
38};
39
40#endif