summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-04-05 12:48:49 (UTC)
committer mickeyl <mickeyl>2004-04-05 12:48:49 (UTC)
commitf1708be741dfb73ceaffb633b44093f2cb2b3d57 (patch) (unidiff)
tree0bdcab2ac6c5f0e5cac67eb58807a50bb79d82e0
parent0b481957a2eebf28b05d9803780d05ad4232aa00 (diff)
downloadopie-f1708be741dfb73ceaffb633b44093f2cb2b3d57.zip
opie-f1708be741dfb73ceaffb633b44093f2cb2b3d57.tar.gz
opie-f1708be741dfb73ceaffb633b44093f2cb2b3d57.tar.bz2
convert core/applets/* to Opie debug framework
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/cardmon/cardmon.cpp20
-rw-r--r--core/applets/clockapplet/clock.cpp4
-rw-r--r--core/applets/irdaapplet/irda.cpp4
-rw-r--r--core/applets/multikeyapplet/multikey.cpp2
-rw-r--r--core/applets/restartapplet/restart.cpp2
-rw-r--r--core/applets/restartapplet/restartappletimpl.cpp1
-rw-r--r--core/applets/rotateapplet/rotate.cpp7
-rw-r--r--core/applets/screenshotapplet/screenshot.cpp20
-rw-r--r--core/applets/vmemo/vmemo.cpp34
-rw-r--r--core/applets/vtapplet/vt.cpp25
-rw-r--r--core/obex/obexsend.cpp29
-rw-r--r--core/obex/receiver.cpp41
12 files changed, 100 insertions, 89 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp
index 1ad8b55..3a6ad27 100644
--- a/core/applets/cardmon/cardmon.cpp
+++ b/core/applets/cardmon/cardmon.cpp
@@ -21,2 +21,3 @@
21/* OPIE */ 21/* OPIE */
22#include <opie2/odebug.h>
22#include <opie2/odevice.h> 23#include <opie2/odevice.h>
@@ -25,2 +26,4 @@
25#include <qpe/resource.h> 26#include <qpe/resource.h>
27using namespace Opie::Core;
28using namespace Opie::Ui;
26 29
@@ -40,3 +43,2 @@
40#include <fcntl.h> 43#include <fcntl.h>
41
42#if defined(_OS_LINUX_) || defined(Q_OS_LINUX) 44#if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
@@ -46,8 +48,2 @@
46 48
47using namespace Opie;
48
49using namespace Opie::Ui;
50using namespace Opie::Ui;
51using namespace Opie::Core;
52
53CardMonitor::CardMonitor( QWidget * parent ) : QWidget( parent ), 49CardMonitor::CardMonitor( QWidget * parent ) : QWidget( parent ),
@@ -199,3 +195,3 @@ void CardMonitor::cardMessage( const QCString & msg, const QByteArray & )
199 { 195 {
200 // qDebug("Pcmcia: stabchanged"); 196 // odebug << "Pcmcia: stabchanged" << oendl;
201 getStatusPcmcia(); 197 getStatusPcmcia();
@@ -204,3 +200,3 @@ void CardMonitor::cardMessage( const QCString & msg, const QByteArray & )
204 { 200 {
205 // qDebug("CARDMONAPPLET: mtabchanged"); 201 // odebug << "CARDMONAPPLET: mtabchanged" << oendl;
206 getStatusSd(); 202 getStatusSd();
@@ -333,3 +329,3 @@ bool CardMonitor::getStatusPcmcia( int showPopUp )
333 // no file found 329 // no file found
334 qDebug( "no file found" ); 330 odebug << "no file found" << oendl;
335 cardInPcmcia0 = FALSE; 331 cardInPcmcia0 = FALSE;
@@ -359,3 +355,3 @@ bool CardMonitor::getStatusSd( int showPopUp )
359 QString fs = me->mnt_fsname; 355 QString fs = me->mnt_fsname;
360 //qDebug( fs ); 356 //odebug << fs << oendl;
361 if ( fs.left( 14 ) == "/dev/mmc/part1" || fs.left( 7 ) == "/dev/sd" 357 if ( fs.left( 14 ) == "/dev/mmc/part1" || fs.left( 7 ) == "/dev/sd"
@@ -387,3 +383,3 @@ bool CardMonitor::getStatusSd( int showPopUp )
387 } 383 }
388 //qDebug("TEXT: " + text ); 384 //odebug << "TEXT: " + text << oendl;
389#ifndef QT_NO_SOUND 385#ifndef QT_NO_SOUND
diff --git a/core/applets/clockapplet/clock.cpp b/core/applets/clockapplet/clock.cpp
index 3b13d74..7d396e7 100644
--- a/core/applets/clockapplet/clock.cpp
+++ b/core/applets/clockapplet/clock.cpp
@@ -22,2 +22,4 @@
22 22
23/* OPIE */
24#include <opie2/odebug.h>
23#include <opie2/otaskbarapplet.h> 25#include <opie2/otaskbarapplet.h>
@@ -27,3 +29,5 @@
27 29
30using namespace Opie::Core;
28using namespace Opie::Ui; 31using namespace Opie::Ui;
32
29LauncherClock::LauncherClock( QWidget *parent ) : QLabel( parent ) 33LauncherClock::LauncherClock( QWidget *parent ) : QLabel( parent )
diff --git a/core/applets/irdaapplet/irda.cpp b/core/applets/irdaapplet/irda.cpp
index 2196d18..7122b40 100644
--- a/core/applets/irdaapplet/irda.cpp
+++ b/core/applets/irdaapplet/irda.cpp
@@ -209,3 +209,3 @@ void IrdaApplet::showDiscovered ( )
209 209
210 // qDebug(discoveredDevice + "(" + deviceAddr + ")"); 210 // odebug << discoveredDevice + "(" + deviceAddr + ")" << oendl;
211 211
@@ -221,3 +221,3 @@ void IrdaApplet::showDiscovered ( )
221 for ( it = m_devices. begin ( ); it != m_devices. end ( ); ) { 221 for ( it = m_devices. begin ( ); it != m_devices. end ( ); ) {
222 // qDebug("IrdaMon: delete " + it.currentKey() + "=" + *devicesAvailable[it.currentKey()] + "?"); 222 // odebug << "IrdaMon: delete " + it.currentKey() + "=" + *devicesAvailable[it.currentKey()] + "?" << oendl;
223 223
diff --git a/core/applets/multikeyapplet/multikey.cpp b/core/applets/multikeyapplet/multikey.cpp
index 195ada5..195d8a4 100644
--- a/core/applets/multikeyapplet/multikey.cpp
+++ b/core/applets/multikeyapplet/multikey.cpp
@@ -70,3 +70,3 @@ void Multikey::mouseReleaseEvent(QMouseEvent *ev)
70 QCopEnvelope e("MultiKey/Keyboard", "setmultikey(QString)"); 70 QCopEnvelope e("MultiKey/Keyboard", "setmultikey(QString)");
71 //qDebug("Lang=%d, count=%d, lab=%s", lang, sw_maps.count(), labels[lang].ascii()); 71 //odebug << "Lang=" << lang << ", count=" << sw_maps.count() << ", lab=" << labels[lang].ascii() << "" << oendl;
72 e << sw_maps[lang]; 72 e << sw_maps[lang];
diff --git a/core/applets/restartapplet/restart.cpp b/core/applets/restartapplet/restart.cpp
index 226c2a8..2e17608 100644
--- a/core/applets/restartapplet/restart.cpp
+++ b/core/applets/restartapplet/restart.cpp
@@ -55,3 +55,2 @@ RestartApplet::RestartApplet( QWidget *parent, const char *name )
55 setFixedWidth( 16 ); 55 setFixedWidth( 16 );
56 qDebug("new restartapplet");
57 show(); 56 show();
@@ -68,3 +67,2 @@ void RestartApplet::paintEvent( QPaintEvent* ) {
68 QPainter p(this); 67 QPainter p(this);
69 qDebug("paint RESTART pixmap");
70 p.drawPixmap( 0, 1, ( const char** ) restart_xpm ); 68 p.drawPixmap( 0, 1, ( const char** ) restart_xpm );
diff --git a/core/applets/restartapplet/restartappletimpl.cpp b/core/applets/restartapplet/restartappletimpl.cpp
index d8e10d3..3adc80c 100644
--- a/core/applets/restartapplet/restartappletimpl.cpp
+++ b/core/applets/restartapplet/restartappletimpl.cpp
@@ -35,3 +35,2 @@ QWidget *RestartAppletImpl::applet( QWidget *parent )
35{ 35{
36 qDebug("restart applet");
37 if ( !restart ) 36 if ( !restart )
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp
index f621aa9..f23423d 100644
--- a/core/applets/rotateapplet/rotate.cpp
+++ b/core/applets/rotateapplet/rotate.cpp
@@ -33,2 +33,3 @@
33/* OPIE */ 33/* OPIE */
34#include <opie2/odebug.h>
34#include <opie2/odevice.h> 35#include <opie2/odevice.h>
@@ -64,3 +65,3 @@ void RotateApplet::channelReceived( const QCString &msg, const QByteArray & data
64{ 65{
65 qDebug( "RotateApplet::channelReceived( '%s' )", (const char*) msg ); 66 odebug << "RotateApplet::channelReceived( '" << msg << "' )" << oendl;
66 67
@@ -74,3 +75,3 @@ void RotateApplet::channelReceived( const QCString &msg, const QByteArray & data
74 OHingeStatus status = ODevice::inst()->readHingeSensor(); 75 OHingeStatus status = ODevice::inst()->readHingeSensor();
75 qDebug( "RotateApplet::readHingeSensor = %d", (int) status ); 76 odebug << "RotateApplet::readHingeSensor = " << (int) status << "" << oendl;
76 77
@@ -98,3 +99,3 @@ void RotateApplet::channelReceived( const QCString &msg, const QByteArray & data
98 } 99 }
99 qDebug( "RotateApplet::switchAction %d performed.", cfg.readNumEntry( "CloseHingeAction", 0 ) ); 100 odebug << "RotateApplet::switchAction " << cfg.readNumEntry( "CloseHingeAction" ) << " performed." << oendl;
100 } 101 }
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp
index 9aa012a..938ea0c 100644
--- a/core/applets/screenshotapplet/screenshot.cpp
+++ b/core/applets/screenshotapplet/screenshot.cpp
@@ -18,2 +18,3 @@
18/* OPIE */ 18/* OPIE */
19#include <opie2/odebug.h>
19#include <opie2/otaskbarapplet.h> 20#include <opie2/otaskbarapplet.h>
@@ -21,2 +22,4 @@
21#include <qpe/applnk.h> 22#include <qpe/applnk.h>
23using namespace Opie::Core;
24using namespace Opie::Ui;
22 25
@@ -41,3 +44,2 @@
41/* XPM */ 44/* XPM */
42using namespace Opie::Ui;
43static char * snapshot_xpm[] = { 45static char * snapshot_xpm[] = {
@@ -364,3 +366,3 @@ void ScreenshotControl::savePixmap()
364 lnk.setFile(fileName); //sets File property 366 lnk.setFile(fileName); //sets File property
365 qDebug("saving file " + fileName); 367 odebug << "saving file " + fileName << oendl;
366 snapshot.save( fileName, "PNG"); 368 snapshot.save( fileName, "PNG");
@@ -370,3 +372,3 @@ void ScreenshotControl::savePixmap()
370 if (!lnk.writeLink()) 372 if (!lnk.writeLink())
371 qDebug("Writing doclink did not work"); 373 odebug << "Writing doclink did not work" << oendl;
372 } 374 }
@@ -382,3 +384,3 @@ void ScreenshotControl::savePixmap()
382 if ( !QDir( dirName).exists() ) { 384 if ( !QDir( dirName).exists() ) {
383 qDebug("making dir " + dirName); 385 odebug << "making dir " + dirName << oendl;
384 QString msg = "mkdir -p " + dirName; 386 QString msg = "mkdir -p " + dirName;
@@ -390,3 +392,3 @@ void ScreenshotControl::savePixmap()
390 lnk.setFile(fileName); //sets File property 392 lnk.setFile(fileName); //sets File property
391 qDebug("saving file " + fileName); 393 odebug << "saving file " + fileName << oendl;
392 snapshot.save( fileName, "PNG"); 394 snapshot.save( fileName, "PNG");
@@ -396,3 +398,3 @@ void ScreenshotControl::savePixmap()
396 if (!lnk.writeLink()) 398 if (!lnk.writeLink())
397 qDebug("Writing doclink did not work"); 399 odebug << "Writing doclink did not work" << oendl;
398 400
@@ -408,3 +410,3 @@ void ScreenshotControl::performGrab()
408 if (buttonPushed == 1) { 410 if (buttonPushed == 1) {
409 qDebug("grabbing screen"); 411 odebug << "grabbing screen" << oendl;
410 grabTimer->stop(); 412 grabTimer->stop();
@@ -422,3 +424,3 @@ void ScreenshotControl::performGrab()
422 QString displayEnv = getenv("QWS_DISPLAY"); 424 QString displayEnv = getenv("QWS_DISPLAY");
423 qDebug(displayEnv); 425 odebug << displayEnv << oendl;
424 426
@@ -459,3 +461,3 @@ void ScreenshotControl::performGrab()
459 header = header.arg( SCAP_model).arg( ::getenv( "USER" ) ).arg( img.numBytes() ).arg( SCAP_hostname ); 461 header = header.arg( SCAP_model).arg( ::getenv( "USER" ) ).arg( img.numBytes() ).arg( SCAP_hostname );
460 qDebug(header); 462 odebug << header << oendl;
461 463
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index 7dd5b4b..622b1df 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -14,2 +14,6 @@
14 14
15/* OPIE */
16#include <opie2/odebug.h>
17using namespace Opie::Core;
18
15extern "C" { 19extern "C" {
@@ -209,3 +213,3 @@ VMemo::VMemo( QWidget *parent, const char *_name )
209 213
210 qDebug("toggleKey %d", toggleKey); 214 odebug << "toggleKey " << toggleKey << "" << oendl;
211 if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" )) 215 if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" ))
@@ -247,3 +251,3 @@ int VMemo::position()
247void VMemo::receive( const QCString &msg, const QByteArray &data ) { 251void VMemo::receive( const QCString &msg, const QByteArray &data ) {
248 qDebug("receive"); 252 odebug << "receive" << oendl;
249 QDataStream stream( data, IO_ReadOnly ); 253 QDataStream stream( data, IO_ReadOnly );
@@ -295,3 +299,3 @@ bool VMemo::startRecording() {
295 299
296 qDebug("Start recording engines"); 300 odebug << "Start recording engines" << oendl;
297 recording = TRUE; 301 recording = TRUE;
@@ -320,3 +324,3 @@ bool VMemo::startRecording() {
320 fileName=fileName.right(fileName.length()-s-2); 324 fileName=fileName.right(fileName.length()-s-2);
321 qDebug("pathname will be "+fileName); 325 odebug << "pathname will be "+fileName << oendl;
322 326
@@ -329,3 +333,3 @@ bool VMemo::startRecording() {
329 fileName+=fName; 333 fileName+=fName;
330 qDebug("filename is "+fileName); 334 odebug << "filename is "+fileName << oendl;
331// open tmp file here 335// open tmp file here
@@ -333,3 +337,3 @@ bool VMemo::startRecording() {
333 pointer=tmpnam(NULL); 337 pointer=tmpnam(NULL);
334 qDebug("Opening tmp file %s",pointer); 338 odebug << "Opening tmp file " << pointer << "" << oendl;
335 339
@@ -373,3 +377,3 @@ void VMemo::stopRecording() {
373 show(); 377 show();
374 qDebug("Stopped recording"); 378 odebug << "Stopped recording" << oendl;
375 recording = FALSE; 379 recording = FALSE;
@@ -401,3 +405,3 @@ int VMemo::openDSP() {
401 405
402 qDebug("samplerate: %d, channels %d, resolution %d", speed, channels, resolution); 406 odebug << "samplerate: " << speed << ", channels " << channels << ", resolution " << resolution << "" << oendl;
403 407
@@ -485,3 +489,3 @@ bool VMemo::record() {
485 msg.sprintf("Recording format %d", format); 489 msg.sprintf("Recording format %d", format);
486 qDebug(msg); 490 odebug << msg << oendl;
487 Config config("Vmemo"); 491 Config config("Vmemo");
@@ -496,3 +500,3 @@ bool VMemo::record() {
496 msg.sprintf("Recording format other"); 500 msg.sprintf("Recording format other");
497 qDebug(msg); 501 odebug << msg << oendl;
498 502
@@ -515,3 +519,3 @@ bool VMemo::record() {
515 perror("recording error "); 519 perror("recording error ");
516// qDebug(currentFileName); 520// odebug << currentFileName << oendl;
517 QMessageBox::message(tr("Note"),tr("error recording")); 521 QMessageBox::message(tr("Note"),tr("error recording"));
@@ -542,3 +546,3 @@ bool VMemo::record() {
542 } 546 }
543 // printf("%d\r",length); 547 // odebug << "" << length << "\r" << oendl;
544 // fflush(stdout); 548 // fflush(stdout);
@@ -561,3 +565,3 @@ bool VMemo::record() {
561 track.close(); 565 track.close();
562 qDebug("Track closed"); 566 odebug << "Track closed" << oendl;
563 567
@@ -585,3 +589,3 @@ bool VMemo::record() {
585 cfgO.writeEntry( currentFileName, time ); 589 cfgO.writeEntry( currentFileName, time );
586 // qDebug("writing config numberOfRecordedSeconds "+time); 590 // odebug << "writing config numberOfRecordedSeconds "+time << oendl;
587 591
@@ -589,3 +593,3 @@ bool VMemo::record() {
589 593
590 qDebug("done recording "+fileName); 594 odebug << "done recording "+fileName << oendl;
591 595
diff --git a/core/applets/vtapplet/vt.cpp b/core/applets/vtapplet/vt.cpp
index bd39093..aec63c3 100644
--- a/core/applets/vtapplet/vt.cpp
+++ b/core/applets/vtapplet/vt.cpp
@@ -1,5 +1,3 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved. 2** Copyright (C) 2003-2004 Michael 'Mickey' Lauer <mickey@Vanille.de>
3**
4** Contact me @ mickeyl@handhelds.org
5** 3**
@@ -15,6 +13,13 @@
15 13
14#include "vt.h"
15
16/* OPIE */
17#include <opie2/odebug.h>
16#include <qpe/resource.h> 18#include <qpe/resource.h>
19using namespace Opie::Core;
17 20
21/* QT */
18#include <qpopupmenu.h> 22#include <qpopupmenu.h>
19 23
24/* STD */
20#include <fcntl.h> 25#include <fcntl.h>
@@ -26,4 +31,2 @@
26 31
27#include "vt.h"
28
29VTApplet::VTApplet ( ) 32VTApplet::VTApplet ( )
@@ -76,3 +79,3 @@ QPopupMenu *VTApplet::popup ( QWidget* parent ) const
76{ 79{
77 qDebug( "VTApplet::popup" ); 80 odebug << "VTApplet::popup" << oendl;
78 81
@@ -101,3 +104,3 @@ void VTApplet::changeVT( int index )
101{ 104{
102 //qDebug( "VTApplet::changeVT( %d )", index-500 ); 105 //odebug << "VTApplet::changeVT( " << index-500 << " )" << oendl;
103 106
@@ -111,3 +114,3 @@ void VTApplet::updateMenu()
111{ 114{
112 //qDebug( "VTApplet::updateMenu()" ); 115 //odebug << "VTApplet::updateMenu()" << oendl;
113 116
@@ -122,5 +125,5 @@ void VTApplet::updateMenu()
122 if ( result == -1 ) 125 if ( result == -1 )
123 qDebug( "VT %d disallocated == free", i ); 126 odebug << "VT " << i << " disallocated == free" << oendl;
124 else 127 else
125 qDebug( "VT %d _not_ disallocated == busy", i ); 128 odebug << "VT " << i << " _not_ disallocated == busy" << oendl;
126 */ 129 */
@@ -136,3 +139,3 @@ void VTApplet::activated()
136{ 139{
137 qDebug( "VTApplet::activated()" ); 140 odebug << "VTApplet::activated()" << oendl;
138} 141}
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 +1,11 @@
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>
@@ -5,13 +15,4 @@
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 )
@@ -106,3 +107,3 @@ void SendWidget::send( const QString& file, const QString& desc ) {
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 ) {
@@ -125,3 +126,3 @@ void SendWidget::slotBTDevices( const QMap<QString, QString>& str ) {
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 ) {
@@ -134,3 +135,3 @@ void SendWidget::slotSelectedDevice( int name, int dev ) {
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)" ) {
@@ -149,3 +150,3 @@ void SendWidget::slotIrError( int ) {
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");
@@ -206,3 +207,3 @@ void DeviceBox::setStatus( int id, const QString& status ) {
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();
diff --git a/core/obex/receiver.cpp b/core/obex/receiver.cpp
index ee2668b..8885256 100644
--- a/core/obex/receiver.cpp
+++ b/core/obex/receiver.cpp
@@ -1,9 +1,13 @@
1#include <sys/types.h> 1#include "obex.h"
2#include <sys/stat.h> 2#include "receiver.h"
3#include <sys/mman.h> 3using namespace OpieObex;
4#include <stdlib.h> // int system
5#include <unistd.h>
6 4
7#include <fcntl.h> 5/* OPIE */
6#include <opie2/odebug.h>
7#include <qpe/applnk.h>
8#include <qpe/qpeapplication.h>
9#include <qpe/qcopenvelope_qws.h>
10using namespace Opie::Core;
8 11
12/* QT */
9#include <qfileinfo.h> 13#include <qfileinfo.h>
@@ -13,10 +17,9 @@
13 17
14#include <qpe/applnk.h> 18/* STD */
15#include <qpe/qpeapplication.h> 19#include <sys/types.h>
16#include <qpe/qcopenvelope_qws.h> 20#include <sys/stat.h>
17 21#include <sys/mman.h>
18#include "obex.h" 22#include <stdlib.h> // int system
19#include "receiver.h" 23#include <unistd.h>
20 24#include <fcntl.h>
21using namespace OpieObex;
22 25
@@ -77,3 +80,3 @@ void Receiver::tidyUp( QString& _file, const QString& ending) {
77 QString cmd = QString("sed -e \"s/^\\(X-MICROSOFT-BODYINK\\)\\;/\\1:/;\" < %2 > %2 ").arg( Global::shellQuote(file)).arg( Global::shellQuote(_file) ); 80 QString cmd = QString("sed -e \"s/^\\(X-MICROSOFT-BODYINK\\)\\;/\\1:/;\" < %2 > %2 ").arg( Global::shellQuote(file)).arg( Global::shellQuote(_file) );
78 qWarning("Executing: %s", cmd.latin1() ); 81 owarn << "Executing: " << cmd << "" << oendl;
79 (void)::system( cmd.latin1() ); 82 (void)::system( cmd.latin1() );
@@ -84,3 +87,3 @@ void Receiver::tidyUp( QString& _file, const QString& ending) {
84int Receiver::checkFile( QString& file ) { 87int Receiver::checkFile( QString& file ) {
85 qWarning("check file!! %s", file.latin1() ); 88 owarn << "check file!! " << file << "" << oendl;
86 int ret; 89 int ret;
@@ -109,3 +112,3 @@ int Receiver::checkFile( QString& file ) {
109 112
110 qWarning("check it now %d", ret ); 113 owarn << "check it now " << ret << "" << oendl;
111 return ret; 114 return ret;
@@ -150,3 +153,3 @@ void OtherHandler::handle( const QString& file ) {
150 DocLnk lnk(file); 153 DocLnk lnk(file);
151 qWarning(" %s %s", lnk.type().latin1(), lnk.icon().latin1() ); 154 owarn << " " << lnk.type() << " " << lnk.icon() << "" << oendl;
152 155
@@ -193,3 +196,3 @@ QString OtherHandler::targetName( const QString& file ) {
193void OtherHandler::copy(const QString& src, const QString& file) { 196void OtherHandler::copy(const QString& src, const QString& file) {
194 qWarning("src %s, dest %s", src.latin1(),file.latin1() ); 197 owarn << "src " << src << ", dest " << file << "" << oendl;
195 QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )). 198 QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )).