author | zecke <zecke> | 2002-10-16 01:05:42 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-16 01:05:42 (UTC) |
commit | 3e973543b77631d053a9616b5540966dbe51ab47 (patch) (unidiff) | |
tree | 8b47c7015ec9706b2dc794ce0cf382d50f47b680 /x11/libqpe-x11/qt | |
parent | 65ef0e86a879332cbf8b1575886d3c36c7d2d9bd (diff) | |
download | opie-3e973543b77631d053a9616b5540966dbe51ab47.zip opie-3e973543b77631d053a9616b5540966dbe51ab47.tar.gz opie-3e973543b77631d053a9616b5540966dbe51ab47.tar.bz2 |
Make it link
-rw-r--r-- | x11/libqpe-x11/qt/qcopchannel_qws.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/x11/libqpe-x11/qt/qcopchannel_qws.cpp b/x11/libqpe-x11/qt/qcopchannel_qws.cpp index efbef3f..c315d66 100644 --- a/x11/libqpe-x11/qt/qcopchannel_qws.cpp +++ b/x11/libqpe-x11/qt/qcopchannel_qws.cpp | |||
@@ -1,14 +1,14 @@ | |||
1 | 1 | ||
2 | #include "../ipc/client/ocopclient.h" | 2 | #include "../../ipc/client/ocopclient.h" |
3 | 3 | ||
4 | #include <qcopchannel_qws.h> | 4 | #include <qcopchannel_qws.h> |
5 | 5 | ||
6 | QCopChannel::QCopChannel( const QCString& channel, QObject* parent, | 6 | QCopChannel::QCopChannel( const QCString& channel, QObject* parent, |
7 | const char* name ) | 7 | const char* name ) |
8 | : QObject( parent, name ),m_chan(channel) { | 8 | : QObject( parent, name ),m_chan(channel) { |
9 | init(); | 9 | init(); |
10 | } | 10 | } |
11 | QCopChannel::~QCopChannel() { | 11 | QCopChannel::~QCopChannel() { |
12 | m_client->delChannel( m_chan ); | 12 | m_client->delChannel( m_chan ); |
13 | delete m_client; | 13 | delete m_client; |
14 | } | 14 | } |
@@ -18,29 +18,29 @@ void QCopChannel::init() { | |||
18 | connect(m_client, SIGNAL(called(const QCString&, const QCString&, const QByteArray& ) ), | 18 | connect(m_client, SIGNAL(called(const QCString&, const QCString&, const QByteArray& ) ), |
19 | this, SLOT(rev(const QCString&, const QCString&, const QByteArray&) ) ); | 19 | this, SLOT(rev(const QCString&, const QCString&, const QByteArray&) ) ); |
20 | } | 20 | } |
21 | QCString QCopChannel::channel()const { | 21 | QCString QCopChannel::channel()const { |
22 | return m_chan; | 22 | return m_chan; |
23 | } | 23 | } |
24 | bool QCopChannel::isRegistered( const QCString& chan) { | 24 | bool QCopChannel::isRegistered( const QCString& chan) { |
25 | OCOPClient client; | 25 | OCOPClient client; |
26 | return client.isRegistered( chan ); | 26 | return client.isRegistered( chan ); |
27 | } | 27 | } |
28 | bool QCopChannel::send( const QCString& chan, const QCString& msg ) { | 28 | bool QCopChannel::send( const QCString& chan, const QCString& msg ) { |
29 | QByteArray ar(0); | 29 | QByteArray ar(0); |
30 | return return sendLocally(chan, msg, ar ); | 30 | return sendLocally(chan, msg, ar ); |
31 | } | 31 | } |
32 | bool QCString::send( const QCString& chan, const QCString& msg, | 32 | bool QCopChannel::send( const QCString& chan, const QCString& msg, |
33 | const QByteArray& ar ) { | 33 | const QByteArray& ar ) { |
34 | return sendLocally( chan, msg, ar ); | 34 | return sendLocally( chan, msg, ar ); |
35 | } | 35 | } |
36 | bool QCopChannel::sendLocally( const QCString& chan, const QCString& msg, | 36 | bool QCopChannel::sendLocally( const QCString& chan, const QCString& msg, |
37 | const QByteArray& ar ) { | 37 | const QByteArray& ar ) { |
38 | OCOPClient client; | 38 | OCOPClient client; |
39 | client.send( chan, msg, ar ); | 39 | client.send( chan, msg, ar ); |
40 | 40 | ||
41 | return true; | 41 | return true; |
42 | } | 42 | } |
43 | void QCopChannel::rev( const QCString& chan, const QCString& msg, const QByteArray& ar ) { | 43 | void QCopChannel::rev( const QCString& chan, const QCString& msg, const QByteArray& ar ) { |
44 | if (chan == m_chan ) | 44 | if (chan == m_chan ) |
45 | emit received(chan, msg, ar ); | 45 | emit received(msg, ar ); |
46 | } | 46 | } |