summaryrefslogtreecommitdiff
path: root/x11
Unidiff
Diffstat (limited to 'x11') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/ipc/client/ocopclient.cpp18
-rw-r--r--x11/ipc/client/ocopclient.h2
-rw-r--r--x11/libqpe-x11/libqpe-x11.pro25
-rw-r--r--x11/libqpe-x11/qt/qcopchannel_qws.cpp8
4 files changed, 35 insertions, 18 deletions
diff --git a/x11/ipc/client/ocopclient.cpp b/x11/ipc/client/ocopclient.cpp
index 1c25271..43e426c 100644
--- a/x11/ipc/client/ocopclient.cpp
+++ b/x11/ipc/client/ocopclient.cpp
@@ -23,3 +23,3 @@ OCOPClient::~OCOPClient() {
23} 23}
24void OCOPClient::init( const QCString& str ) { 24void OCOPClient::init( const QCString& ) {
25 struct sockaddr_un unix_adr; 25 struct sockaddr_un unix_adr;
@@ -64,3 +64,3 @@ void OCOPClient::newData() {
64 /* is Registered should be handled sync */ 64 /* is Registered should be handled sync */
65 case OCOPPacket::isRegistered: 65 case OCOPPacket::IsRegistered:
66 break; 66 break;
@@ -72,3 +72,3 @@ void OCOPClient::newData() {
72} 72}
73OCOPPacket OCOPClient::packet() { 73OCOPPacket OCOPClient::packet() const{
74 QCString chan; 74 QCString chan;
@@ -84,3 +84,3 @@ OCOPPacket OCOPClient::packet() {
84 } 84 }
85 OCOPPacket pack(head.type, chan, func, data ); 85 OCOPPacket pack(head.type, chan, func, ar );
86 return pack; 86 return pack;
@@ -92,3 +92,3 @@ OCOPPacket OCOPClient::packet() {
92 */ 92 */
93bool OCOPClient::isRegistered( const QCString& chan ) { 93bool OCOPClient::isRegistered( const QCString& chan ) const{
94 /* should I disconnect the socket notfier? */ 94 /* should I disconnect the socket notfier? */
@@ -105,3 +105,3 @@ bool OCOPClient::isRegistered( const QCString& chan ) {
105 if (func[0] == 1 ) 105 if (func[0] == 1 )
106 return; 106 return true;
107 } 107 }
@@ -114,3 +114,3 @@ void OCOPClient::send( const QCString& chan, const QCString& fu, const QByteArra
114} 114}
115void OCOPClient::addChannel(const QCString& channet) { 115void OCOPClient::addChannel(const QCString& channel) {
116 OCOPPacket pack(OCOPPacket::RegisterChannel, channel ); 116 OCOPPacket pack(OCOPPacket::RegisterChannel, channel );
@@ -119,6 +119,6 @@ void OCOPClient::addChannel(const QCString& channet) {
119void OCOPClient::delChannel(const QCString& chan ) { 119void OCOPClient::delChannel(const QCString& chan ) {
120 OCOPPacket pack(OCOPPacket::UnregisterChannel, channel ); 120 OCOPPacket pack(OCOPPacket::UnregisterChannel, chan );
121 call( pack ); 121 call( pack );
122} 122}
123void OCOPPacket::call( const OCOPPacket& pack ) { 123void OCOPClient::call( const OCOPPacket& pack ) {
124 OCOPHead head = pack.head(); 124 OCOPHead head = pack.head();
diff --git a/x11/ipc/client/ocopclient.h b/x11/ipc/client/ocopclient.h
index db04d37..e9544b9 100644
--- a/x11/ipc/client/ocopclient.h
+++ b/x11/ipc/client/ocopclient.h
@@ -49,3 +49,3 @@ private slots:
49private: 49private:
50 OCOPPacket packet(); 50 OCOPPacket packet()const;
51 void call( const OCOPPacket& ); 51 void call( const OCOPPacket& );
diff --git a/x11/libqpe-x11/libqpe-x11.pro b/x11/libqpe-x11/libqpe-x11.pro
index 1d30f90..64c05fa 100644
--- a/x11/libqpe-x11/libqpe-x11.pro
+++ b/x11/libqpe-x11/libqpe-x11.pro
@@ -55,4 +55,8 @@ HEADERS = ../../library/calendar.h \
55 ../../library/imagecodecinterface.h \ 55 ../../library/imagecodecinterface.h \
56 qt/qcopchannel_qws.h \
56 qpe/qpeapplication.h \ 57 qpe/qpeapplication.h \
57 qpe/fontmanager.h 58 qpe/fontmanager.h \
59 ../ipc/client/ocopclient.h \
60 ../ipc/common/ocoppacket.h
61
58 62
@@ -108,9 +112,21 @@ SOURCES = ../../library/calendar.cpp \
108 ../../library/finddialog.cpp \ 112 ../../library/finddialog.cpp \
109 ../../library/lnkproperties.cpp 113 ../../library/lnkproperties.cpp \
114 qt/qcopchannel_qws.cpp \
115 qpe/qpeapplication.cpp \
116 ../ipc/client/ocopclient.cpp \
117 ../ipc/common/ocoppacket.cpp
110 118
111# Qt 3 compatibility 119# Qt 3 compatibility
112qt2:HEADERS += quuid.h qcom.h qlibrary.h qlibrary_p.h 120HEADERS += ../../library/quuid.h \
113qt2:SOURCES += quuid.cpp qlibrary.cpp qlibrary_unix.cpp 121 ../../library/qcom.h \
122 ../../library/qlibrary.h \
123 ../../library/qlibrary_p.h
124
125SOURCES += ../../library/quuid.cpp \
126 ../../library/qlibrary.cpp \
127 ../../library/qlibrary_unix.cpp
128
114INCLUDEPATH += $(OPIEDIR)/include backend 129INCLUDEPATH += $(OPIEDIR)/include backend
115 LIBS += -ldl -lcrypt -lm 130 LIBS += -ldl -lcrypt -lm
131
116INTERFACES = ../../library/passwordbase_p.ui \ 132INTERFACES = ../../library/passwordbase_p.ui \
@@ -119,2 +135,3 @@ INTERFACES = ../../library/passwordbase_p.ui \
119 ../../library/lnkpropertiesbase_p.ui 135 ../../library/lnkpropertiesbase_p.ui
136
120 TARGET = qpe-x11 137 TARGET = qpe-x11
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,3 +1,3 @@
1 1
2#include "../ipc/client/ocopclient.h" 2#include "../../ipc/client/ocopclient.h"
3 3
@@ -29,5 +29,5 @@ 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}
32bool QCString::send( const QCString& chan, const QCString& msg, 32bool QCopChannel::send( const QCString& chan, const QCString& msg,
33 const QByteArray& ar ) { 33 const QByteArray& ar ) {
@@ -44,3 +44,3 @@ void QCopChannel::rev( const QCString& chan, const QCString& msg, const QByteArr
44 if (chan == m_chan ) 44 if (chan == m_chan )
45 emit received(chan, msg, ar ); 45 emit received(msg, ar );
46} 46}