summaryrefslogtreecommitdiff
path: root/core/obex/obexsend.cpp
Unidiff
Diffstat (limited to 'core/obex/obexsend.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/obex/obexsend.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/core/obex/obexsend.cpp b/core/obex/obexsend.cpp
index cd8d58e..f3dd11c 100644
--- a/core/obex/obexsend.cpp
+++ b/core/obex/obexsend.cpp
@@ -1,2 +1,12 @@
1#include "obex.h"
2#include "obexsend.h"
3using namespace OpieObex;
4
5/* OPIE */
6#include <opie2/odebug.h>
7#include <qpe/qcopenvelope_qws.h>
8using namespace Opie::Core;
9
10/* QT */
1#include <qpushbutton.h> 11#include <qpushbutton.h>
2#include <qlabel.h> 12#include <qlabel.h>
@@ -4,15 +14,6 @@
4#include <qtimer.h> 14#include <qtimer.h>
5 15
6
7#include <qpe/qcopenvelope_qws.h>
8
9#include "obex.h"
10#include "obexsend.h"
11
12using namespace OpieObex;
13
14/* TRANSLATOR OpieObex::SendWidget */ 16/* TRANSLATOR OpieObex::SendWidget */
15 17
16
17SendWidget::SendWidget( QWidget* parent, const char* name ) 18SendWidget::SendWidget( QWidget* parent, const char* name )
18 : QWidget( parent, name ) { 19 : QWidget( parent, name ) {
@@ -105,5 +106,5 @@ void SendWidget::send( const QString& file, const QString& desc ) {
105} 106}
106void SendWidget::slotIrDaDevices( const QStringList& list) { 107void SendWidget::slotIrDaDevices( const QStringList& list) {
107 qWarning("slot it irda devices "); 108 owarn << "slot it irda devices " << oendl;
108 for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) { 109 for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
109 int id = m_devBox->addDevice( (*it), DeviceBox::IrDa, tr("Scheduling for beam.") ); 110 int id = m_devBox->addDevice( (*it), DeviceBox::IrDa, tr("Scheduling for beam.") );
@@ -124,5 +125,5 @@ void SendWidget::slotBTDevices( const QMap<QString, QString>& str ) {
124} 125}
125void SendWidget::slotSelectedDevice( int name, int dev ) { 126void SendWidget::slotSelectedDevice( int name, int dev ) {
126 qWarning("Start beam? %d %d", name, dev ); 127 owarn << "Start beam? " << name << " " << dev << "" << oendl;
127 if ( name == m_irDeSearch ) { 128 if ( name == m_irDeSearch ) {
128 for (QMap<int, QString>::Iterator it= m_irDa.begin(); it != m_irDa.end(); ++it ) 129 for (QMap<int, QString>::Iterator it= m_irDa.begin(); it != m_irDa.end(); ++it )
@@ -133,5 +134,5 @@ void SendWidget::slotSelectedDevice( int name, int dev ) {
133} 134}
134void SendWidget::dispatchIrda( const QCString& str, const QByteArray& ar ) { 135void SendWidget::dispatchIrda( const QCString& str, const QByteArray& ar ) {
135 qWarning("dispatch irda %s", str.data() ); 136 owarn << "dispatch irda " << str.data() << "" << oendl;
136 if ( str == "devices(QStringList)" ) { 137 if ( str == "devices(QStringList)" ) {
137 QDataStream stream( ar, IO_ReadOnly ); 138 QDataStream stream( ar, IO_ReadOnly );
@@ -148,5 +149,5 @@ void SendWidget::slotIrError( int ) {
148} 149}
149void SendWidget::slotIrSent( bool b) { 150void SendWidget::slotIrSent( bool b) {
150 qWarning("irda sent!!"); 151 owarn << "irda sent!!" << oendl;
151 QString text = b ? tr("Sent") : tr("Failure"); 152 QString text = b ? tr("Sent") : tr("Failure");
152 m_devBox->setStatus( m_irDaIt.key(), text ); 153 m_devBox->setStatus( m_irDaIt.key(), text );
@@ -205,5 +206,5 @@ void DeviceBox::setStatus( int id, const QString& status ) {
205} 206}
206void DeviceBox::setSource( const QString& str ) { 207void DeviceBox::setSource( const QString& str ) {
207 qWarning("SetSource:%d", str.toInt() ); 208 owarn << "SetSource:" << str.toInt() << "" << oendl;
208 int id = str.toInt(); 209 int id = str.toInt();
209 emit selectedDevice( id, m_dev[id].device() ); 210 emit selectedDevice( id, m_dev[id].device() );