summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/composemail.cpp20
-rw-r--r--noncore/net/opietooth/manager/hciconfwrapper.cpp2
-rw-r--r--noncore/net/opietooth/manager/rfcommconfhandler.cpp2
-rw-r--r--noncore/net/wellenreiter/gui/scanlist.cpp17
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp9
5 files changed, 25 insertions, 25 deletions
diff --git a/noncore/net/mail/composemail.cpp b/noncore/net/mail/composemail.cpp
index b15e692..449fdf1 100644
--- a/noncore/net/mail/composemail.cpp
+++ b/noncore/net/mail/composemail.cpp
@@ -1,27 +1,31 @@
1#include <qt.h>
2 1
2#include "composemail.h"
3
4#include <libmailwrapper/smtpwrapper.h>
5#include <libmailwrapper/storemail.h>
6#include <libmailwrapper/abstractmail.h>
7#include <libmailwrapper/mailtypes.h>
8
9/* OPIE */
3#include <opie2/ofiledialog.h> 10#include <opie2/ofiledialog.h>
4#include <opie2/odebug.h> 11#include <opie2/odebug.h>
5#include <qpe/resource.h> 12#include <qpe/resource.h>
6#include <qpe/config.h> 13#include <qpe/config.h>
7#include <qpe/global.h> 14#include <qpe/global.h>
8#include <qpe/contact.h> 15#include <qpe/contact.h>
9 16
10#include "composemail.h" 17/* QT */
18#include <qt.h>
11 19
12#include <libmailwrapper/smtpwrapper.h>
13#include <libmailwrapper/storemail.h>
14#include <libmailwrapper/abstractmail.h>
15#include <libmailwrapper/mailtypes.h>
16 20
17using namespace Opie::Core; 21using namespace Opie::Core;
18using namespace Opie::Ui; 22using namespace Opie::Ui;
19ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags ) 23ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags )
20 : ComposeMailUI( parent, name, modal, flags ) 24 : ComposeMailUI( parent, name, modal, flags )
21{ 25{
22 settings = s; 26 settings = s;
23 m_replyid = ""; 27 m_replyid = "";
24 28
25 QString vfilename = Global::applicationFileName("addressbook", 29 QString vfilename = Global::applicationFileName("addressbook",
26 "businesscard.vcf"); 30 "businesscard.vcf");
27 Contact c; 31 Contact c;
@@ -179,26 +183,26 @@ void ComposeMail::removeAttachment()
179 } else { 183 } else {
180 attList->takeItem( attList->currentItem() ); 184 attList->takeItem( attList->currentItem() );
181 } 185 }
182} 186}
183 187
184void ComposeMail::accept() 188void ComposeMail::accept()
185{ 189{
186 if ( checkBoxLater->isChecked() ) { 190 if ( checkBoxLater->isChecked() ) {
187 odebug << "Send later" << oendl; 191 odebug << "Send later" << oendl;
188 } 192 }
189 193
190#if 0 194#if 0
191 qDebug( "Sending Mail with " + 195 odebug << "Sending Mail with "
192 smtpAccounts.at( smtpAccountBox->currentItem() )->getAccountName() ); 196 << smtpAccounts.at( smtpAccountBox->currentItem() )->getAccountName() << oendl;
193#endif 197#endif
194 Opie::Core::OSmartPointer<Mail> mail=new Mail; 198 Opie::Core::OSmartPointer<Mail> mail=new Mail;
195 199
196 SMTPaccount *smtp = smtpAccounts.at( smtpAccountBox->currentItem() ); 200 SMTPaccount *smtp = smtpAccounts.at( smtpAccountBox->currentItem() );
197 mail->setMail(fromBox->currentText()); 201 mail->setMail(fromBox->currentText());
198 202
199 if ( !toLine->text().isEmpty() ) { 203 if ( !toLine->text().isEmpty() ) {
200 mail->setTo( toLine->text() ); 204 mail->setTo( toLine->text() );
201 } else { 205 } else {
202 QMessageBox::warning(0,tr("Sending mail"), 206 QMessageBox::warning(0,tr("Sending mail"),
203 tr("No Receiver spezified" ) ); 207 tr("No Receiver spezified" ) );
204 return; 208 return;
diff --git a/noncore/net/opietooth/manager/hciconfwrapper.cpp b/noncore/net/opietooth/manager/hciconfwrapper.cpp
index ca2e7bd..47e170e 100644
--- a/noncore/net/opietooth/manager/hciconfwrapper.cpp
+++ b/noncore/net/opietooth/manager/hciconfwrapper.cpp
@@ -14,25 +14,25 @@ namespace OpieTooth {
14 m_fileName = fileName; 14 m_fileName = fileName;
15 } 15 }
16 16
17 HciConfWrapper::~HciConfWrapper() { 17 HciConfWrapper::~HciConfWrapper() {
18 } 18 }
19 19
20 20
21 void HciConfWrapper::setPinHelper( const QString& app ) { 21 void HciConfWrapper::setPinHelper( const QString& app ) {
22 setValue( "pin_helper" , app ); 22 setValue( "pin_helper" , app );
23 } 23 }
24 24
25 void HciConfWrapper::setName( const QString &name ) { 25 void HciConfWrapper::setName( const QString &name ) {
26 qDebug ("NAME : " + name); 26 odebug << "NAME : " << name << oendl;
27 setValue( "name" , "\"" + name + "\"" ); 27 setValue( "name" , "\"" + name + "\"" );
28 } 28 }
29 29
30 void HciConfWrapper::setIscan( bool enable) { 30 void HciConfWrapper::setIscan( bool enable) {
31 31
32 if ( enable ) { 32 if ( enable ) {
33 setValue( "iscan" , "enable" ); 33 setValue( "iscan" , "enable" );
34 } else { 34 } else {
35 setValue( "iscan" , "disable" ); 35 setValue( "iscan" , "disable" );
36 } 36 }
37 } 37 }
38 38
diff --git a/noncore/net/opietooth/manager/rfcommconfhandler.cpp b/noncore/net/opietooth/manager/rfcommconfhandler.cpp
index 1f7ba65..f82d2c8 100644
--- a/noncore/net/opietooth/manager/rfcommconfhandler.cpp
+++ b/noncore/net/opietooth/manager/rfcommconfhandler.cpp
@@ -94,23 +94,23 @@ void RfCommConfHandler::load() {
94 94
95 if ( tmpLine.startsWith("rfcomm") ) { 95 if ( tmpLine.startsWith("rfcomm") ) {
96 QString number = tmpLine.mid( 6,1 ); 96 QString number = tmpLine.mid( 6,1 );
97 odebug << tmpLine << oendl; 97 odebug << tmpLine << oendl;
98 odebug << "TEST " + number << oendl; 98 odebug << "TEST " + number << oendl;
99 } else if ( tmpLine.startsWith( "}" ) ) { 99 } else if ( tmpLine.startsWith( "}" ) ) {
100 m_foundEntries.insert( number, new RfCommConfObject( number.toInt(), mac, channel.toInt(), comment ) ); 100 m_foundEntries.insert( number, new RfCommConfObject( number.toInt(), mac, channel.toInt(), comment ) );
101 } else if ( tmpLine.startsWith( "device" ) ) { 101 } else if ( tmpLine.startsWith( "device" ) ) {
102 mac = tmpLine.mid( 7, 17 ); 102 mac = tmpLine.mid( 7, 17 );
103 odebug << "mac" + mac << oendl; 103 odebug << "mac" + mac << oendl;
104 } else if ( tmpLine.startsWith( "channel" ) ) { 104 } else if ( tmpLine.startsWith( "channel" ) ) {
105 channel = tmpLine.mid( 8, 1 ); 105 channel = tmpLine.mid( 8, 1 );
106 qDebug ( "Channel :" + channel ); 106 odebug << "Channel :" << channel << oendl;
107 } else if ( tmpLine.startsWith( "comment" ) ) { 107 } else if ( tmpLine.startsWith( "comment" ) ) {
108 comment = tmpLine.mid( 9, tmpLine.find( ';' ) - 9 - 1 ); 108 comment = tmpLine.mid( 9, tmpLine.find( ';' ) - 9 - 1 );
109 odebug << "Comment: " + comment << oendl; 109 odebug << "Comment: " + comment << oendl;
110 } 110 }
111 } 111 }
112 rfCommConf.close(); 112 rfCommConf.close();
113 } 113 }
114 save( m_foundEntries ); 114 save( m_foundEntries );
115 odebug << QString( "ENTries: %1").arg( m_foundEntries.count() ) << oendl; 115 odebug << QString( "ENTries: %1").arg( m_foundEntries.count() ) << oendl;
116} 116}
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp
index c605111..9e8aa72 100644
--- a/noncore/net/wellenreiter/gui/scanlist.cpp
+++ b/noncore/net/wellenreiter/gui/scanlist.cpp
@@ -120,26 +120,27 @@ void MScanListView::serializeFrom( QDataStream& s)
120void MScanListView::addNewItem( const QString& type, 120void MScanListView::addNewItem( const QString& type,
121 const QString& essid, 121 const QString& essid,
122 const OMacAddress& mac, 122 const OMacAddress& mac,
123 bool wep, 123 bool wep,
124 int channel, 124 int channel,
125 int signal, 125 int signal,
126 const GpsLocation& loc, 126 const GpsLocation& loc,
127 bool probe ) 127 bool probe )
128{ 128{
129 QString macaddr = mac.toString(true); 129 QString macaddr = mac.toString(true);
130 130
131 #ifdef DEBUG 131 #ifdef DEBUG
132 qDebug( "MScanList::addNewItem( %s / %s / %s [%d]", (const char*) type, 132 odebug << "MScanList::addNewItem( " << (const char*) type << " / "
133 (const char*) essid, (const char*) macaddr, channel ); 133 << (const char*) essid << " / " << (const char*) macaddr
134 << " [" << channel << "]" << oendl;
134 #endif 135 #endif
135 136
136 // search, if we already have seen this net 137 // search, if we already have seen this net
137 138
138 QString s; 139 QString s;
139 MScanListItem* network; 140 MScanListItem* network;
140 MScanListItem* item = static_cast<MScanListItem*> ( firstChild() ); 141 MScanListItem* item = static_cast<MScanListItem*> ( firstChild() );
141 142
142 while ( item && ( item->text( col_essid ) != essid ) ) 143 while ( item && ( item->text( col_essid ) != essid ) )
143 { 144 {
144 #ifdef DEBUG 145 #ifdef DEBUG
145 odebug << "itemtext: " << item->text( col_essid ) << "" << oendl; 146 odebug << "itemtext: " << item->text( col_essid ) << "" << oendl;
@@ -385,26 +386,26 @@ void MScanListView::addService( const QString& name, const OMacAddress& macaddr,
385 odebug << "D'oh! Received identification, but item not yet in list... ==> Handle this!" << oendl; 386 odebug << "D'oh! Received identification, but item not yet in list... ==> Handle this!" << oendl;
386 MLogWindow::logwindow()->log( QString().sprintf( "WARNING: Unhandled service addition %s = %s!", 387 MLogWindow::logwindow()->log( QString().sprintf( "WARNING: Unhandled service addition %s = %s!",
387 (const char*) macaddr.toString(), (const char*) ip ) ); 388 (const char*) macaddr.toString(), (const char*) ip ) );
388} 389}
389 390
390 391
391void MScanListView::contextMenuRequested( QListViewItem* item, const QPoint&, int col ) 392void MScanListView::contextMenuRequested( QListViewItem* item, const QPoint&, int col )
392{ 393{
393 if ( !item ) return; 394 if ( !item ) return;
394 395
395 MScanListItem* itm = static_cast<MScanListItem*>( item ); 396 MScanListItem* itm = static_cast<MScanListItem*>( item );
396 397
397 qDebug( "contextMenuRequested on item '%s' (%s) in column: '%d'", 398 odebug << "contextMenuRequested on item '" << (const char*) itm->text(0) << "' ("
398 (const char*) itm->text(0), (const char*) itm->type, col ); 399 << (const char*) itm->type << ") in column: '" << col << "'" << oendl;
399 400
400 if ( itm->type == "adhoc" || itm->type == "managed" ) 401 if ( itm->type == "adhoc" || itm->type == "managed" )
401 { 402 {
402 QString entry = QString().sprintf( "&Join %s Net '%s'...", (const char*) itm->type, (const char*) itm->essid() ); 403 QString entry = QString().sprintf( "&Join %s Net '%s'...", (const char*) itm->type, (const char*) itm->essid() );
403 404
404 QPopupMenu m( this ); 405 QPopupMenu m( this );
405 m.insertItem( entry, 37773, 0 ); 406 m.insertItem( entry, 37773, 0 );
406 int result = m.exec( QCursor::pos() ); 407 int result = m.exec( QCursor::pos() );
407 if ( result == 37773 ) 408 if ( result == 37773 )
408 emit joinNetwork( itm->type, itm->essid(), itm->channel(), itm->macaddr() ); 409 emit joinNetwork( itm->type, itm->essid(), itm->channel(), itm->macaddr() );
409 } 410 }
410} 411}
@@ -480,29 +481,27 @@ void MScanListItem::serializeFrom( QDataStream& s )
480 481
481 QString name; 482 QString name;
482 name.sprintf( "wellenreiter/%s", (const char*) _type ); 483 name.sprintf( "wellenreiter/%s", (const char*) _type );
483 setPixmap( col_type, Resource::loadPixmap( name ) ); 484 setPixmap( col_type, Resource::loadPixmap( name ) );
484 if ( _wep ) 485 if ( _wep )
485 setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); //FIXME: rename the pixmap! 486 setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); //FIXME: rename the pixmap!
486 listView()->triggerUpdate(); 487 listView()->triggerUpdate();
487} 488}
488 489
489void MScanListItem::decorateItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal, bool probed ) 490void MScanListItem::decorateItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal, bool probed )
490{ 491{
491 #ifdef DEBUG 492 #ifdef DEBUG
492 qDebug( "decorating scanlist item %s / %s / %s [%d]", 493 odebug << "decorating scanlist item " << (const char*) type << " / "
493 (const char*) type, 494 << (const char*) essid << " / " << (const char*) macaddr
494 (const char*) essid, 495 << "[" << channel << "]" << oendl;
495 (const char*) macaddr,
496 channel );
497 #endif 496 #endif
498 497
499 // set icon for managed or adhoc mode 498 // set icon for managed or adhoc mode
500 QString name; 499 QString name;
501 name.sprintf( "wellenreiter/%s", (const char*) type ); 500 name.sprintf( "wellenreiter/%s", (const char*) type );
502 setPixmap( col_type, Resource::loadPixmap( name ) ); 501 setPixmap( col_type, Resource::loadPixmap( name ) );
503 502
504 // special case for probed networks FIXME: This is ugly at present 503 // special case for probed networks FIXME: This is ugly at present
505 if ( type == "network" && probed ) 504 if ( type == "network" && probed )
506 { 505 {
507 setPixmap( col_type, Resource::loadPixmap( "wellenreiter/network-probed.png" ) ); 506 setPixmap( col_type, Resource::loadPixmap( "wellenreiter/network-probed.png" ) );
508 } 507 }
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 2f85790..e801ce7 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -733,30 +733,27 @@ void Wellenreiter::joinNetwork(const QString& type, const QString& essid, int ch
733 if ( !iface ) 733 if ( !iface )
734 { 734 {
735 QMessageBox::warning( this, tr( "Can't do that!" ), tr( "No wireless\ninterface available." ) ); 735 QMessageBox::warning( this, tr( "Can't do that!" ), tr( "No wireless\ninterface available." ) );
736 return; 736 return;
737 } 737 }
738 738
739 if ( sniffing ) 739 if ( sniffing )
740 { 740 {
741 QMessageBox::warning( this, tr( "Can't do that!" ), tr( "Stop sniffing before\njoining a net." ) ); 741 QMessageBox::warning( this, tr( "Can't do that!" ), tr( "Stop sniffing before\njoining a net." ) );
742 return; 742 return;
743 } 743 }
744 744
745 qDebug( "joinNetwork() with Interface %s: %s, %s, %d, %s", 745 odebug << "joinNetwork() with Interface " << (const char*) iface->name()
746 (const char*) iface->name(), 746 << ": " << (const char*) type << ", " << (const char*) essid
747 (const char*) type, 747 << ", " << channel << ", " << (const char*) macaddr << oendl;
748 (const char*) essid,
749 channel,
750 (const char*) macaddr );
751 748
752 QCopEnvelope msg( "QPE/Application/networksettings", "wlan(QString,QString,QString)" ); 749 QCopEnvelope msg( "QPE/Application/networksettings", "wlan(QString,QString,QString)" );
753 int count = 3; 750 int count = 3;
754 odebug << "sending " << count << " messages" << oendl; 751 odebug << "sending " << count << " messages" << oendl;
755 msg << QString("count") << QString::number(count); 752 msg << QString("count") << QString::number(count);
756 odebug << "msg >" << iface->name() << "< Mode >" << type.latin1() << "<" << oendl; 753 odebug << "msg >" << iface->name() << "< Mode >" << type.latin1() << "<" << oendl;
757 msg << QString(iface->name()) << QString("Mode") << type; 754 msg << QString(iface->name()) << QString("Mode") << type;
758 odebug << "msg >" << iface->name() << "< essid >" << essid.latin1() << "<" << oendl; 755 odebug << "msg >" << iface->name() << "< essid >" << essid.latin1() << "<" << oendl;
759 msg << QString(iface->name()) << QString("ESSID") << essid; 756 msg << QString(iface->name()) << QString("ESSID") << essid;
760 odebug << "msg >" << iface->name() << "< channel >" << channel << "<" << oendl; 757 odebug << "msg >" << iface->name() << "< channel >" << channel << "<" << oendl;
761 msg << QString(iface->name()) << QString("Channel") << channel; 758 msg << QString(iface->name()) << QString("Channel") << channel;
762// odebug << "msg >" << iface->name() << "< mac >" << macaddr << "<" << oendl; 759// odebug << "msg >" << iface->name() << "< mac >" << macaddr << "<" << oendl;