-rw-r--r-- | core/applets/obex/obeximpl.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/applets/obex/obeximpl.cc b/core/applets/obex/obeximpl.cc index 1a1c922..7df933a 100644 --- a/core/applets/obex/obeximpl.cc +++ b/core/applets/obex/obeximpl.cc @@ -29,4 +29,5 @@ ObexImpl::ObexImpl( ) this, SLOT(slotReceivedFile(const QString& ) ) ); } + ObexImpl::~ObexImpl() { delete m_obex; @@ -34,4 +35,5 @@ ObexImpl::~ObexImpl() { delete m_sendgui; } + QRESULT ObexImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; @@ -45,6 +47,6 @@ QRESULT ObexImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) (*iface)->addRef(); return QS_OK; - } + void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) { QDataStream stream( data, IO_ReadOnly ); @@ -65,5 +67,5 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) { SLOT( slotSent() ) ); }else if(msg == "receive(int)" ) { // open a GUI - m_recvgui->showMaximized(); + //m_recvgui->showMaximized(); int receiveD = 0; stream >> receiveD; @@ -106,4 +108,5 @@ void ObexImpl::slotError( int errorCode) { m_sendgui->hide(); } + // Received a file via beam // check for mime type and then either @@ -122,4 +125,9 @@ void ObexImpl::slotReceivedFile( const QString &fileName ) { } } // now prompt and then add it + + m_recvgui->PixmapLabel->setPixmap(lnk.pixmap()); + m_recvgui->TextLabel1_2->setText(lnk.name()); + m_recvgui->showMaximized(); + QCString str= "QPE/Application/"; str += exec.latin1(); |