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 | 40 |
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 @@ +#ifndef OPIE_QCOP_CHANNEL_QWS_H +#define OPIE_QCOP_CHANNEL_QWS_H + +#include <qobject.h> +#include <qcstring.h> + +class OCOPClient; +class QCopChannel : public QObject { + Q_OBJECT +public: + QCopChannel( const QCString& channel, QObject* parent = 0, + const char* name = 0); + virtual ~QCopChannel(); + + QCString channel()const; + + static bool isRegistered( const QCString& channel ); + static bool send( const QCString& channel, const QCString& msg ); + static bool send( const QCString& channel, const QCString& msg, + const QByteArray& ); + static bool sendLocally( const QCString& chan, const QCString& msg, + const QByteArray& data ); + +signals: + void received( const QCString& msg, const QByteArray& ); + +private slots: + void rev( const QCString& chan, const QCString&, const QByteArray& ); + +private: + void init(); + OCOPClient* m_client; + /* the channel */ + QCString m_chan; + class Private; + Private *d; + +}; + +#endif |