summaryrefslogtreecommitdiff
path: root/core/applets/obex/obeximpl.cc
authorzecke <zecke>2002-06-12 16:37:52 (UTC)
committer zecke <zecke>2002-06-12 16:37:52 (UTC)
commitac707e366de561cabc8074b62025d143200869d7 (patch) (side-by-side diff)
treead30bac3657fde6e664e7784eb34873989e94699 /core/applets/obex/obeximpl.cc
parent9b87f7a2f2de6b5c1bad4f35f76fc7a0fd1ad021 (diff)
downloadopie-ac707e366de561cabc8074b62025d143200869d7.zip
opie-ac707e366de561cabc8074b62025d143200869d7.tar.gz
opie-ac707e366de561cabc8074b62025d143200869d7.tar.bz2
OBEX time
Diffstat (limited to 'core/applets/obex/obeximpl.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/obex/obeximpl.cc25
1 files changed, 16 insertions, 9 deletions
diff --git a/core/applets/obex/obeximpl.cc b/core/applets/obex/obeximpl.cc
index a3004ab..fa2a30a 100644
--- a/core/applets/obex/obeximpl.cc
+++ b/core/applets/obex/obeximpl.cc
@@ -1,2 +1,4 @@
+#include <qdatastream.h>
+#include <qpe/qcom.h>
@@ -5,2 +7,4 @@
+
+
using namespace OpieObex;
@@ -8,7 +12,8 @@ using namespace OpieObex;
ObexImpl::ObexImpl( )
- : QObject {
+ : QObject() {
// register to a channel
+ qWarning( "c'tor" );
m_obex = new Obex(this, "obex");
m_chan = new QCopChannel("QPE/Obex" );
- cconnect(m_chan, SIGNAL(received(const QCString&, const QByteArray& ) ),
+ connect(m_chan, SIGNAL(received(const QCString&, const QByteArray& ) ),
this, SLOT(slotMessage(const QCString&, const QByteArray&) ) );
@@ -21,3 +26,3 @@ QRESULT ObexImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
*iface = 0;
- if( uuid == IID_QUknown )
+ if( uuid == IID_QUnknown )
*iface = this;
@@ -26,2 +31,3 @@ QRESULT ObexImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
+ qWarning("query" );
if(*iface )
@@ -32,3 +38,4 @@ QRESULT ObexImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) {
- QDataStrean stream( data, IO_ReadOnly );
+ QDataStream stream( data, IO_ReadOnly );
+ qWarning("Message %s", msg.data() );
if(msg == "send(QString,QString,QString)" ) {
@@ -39,6 +46,6 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) {
m_obex->send(filename );
- QCopEnvelope e ("QPE/Obex", "done(QString)" ):
- e << filename;
- }else if( ) {
-
+ QCopEnvelope e ("QPE/Obex", "done(QString)" );
+ e << filename;
+ }else if(msg == "receive(bool)" ) {
+ ;
}
@@ -48,3 +55,3 @@ Q_EXPORT_INTERFACE()
{
- Q_CREATE_INSTANCE( IrdaAppletImpl )
+ Q_CREATE_INSTANCE( ObexImpl )
}