summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui
authortille <tille>2003-06-16 17:05:01 (UTC)
committer tille <tille>2003-06-16 17:05:01 (UTC)
commit3508149e0c894e53bc31ee7b66d98a195cdb8d70 (patch) (unidiff)
tree34fb52e3a8d537fdf598addb913cdda4b5fc0470 /noncore/net/wellenreiter/gui
parentad64cf15ac6ac064619079592f7656464e88baac (diff)
downloadopie-3508149e0c894e53bc31ee7b66d98a195cdb8d70.zip
opie-3508149e0c894e53bc31ee7b66d98a195cdb8d70.tar.gz
opie-3508149e0c894e53bc31ee7b66d98a195cdb8d70.tar.bz2
wellenreiter speaks with networksettings now...
Diffstat (limited to 'noncore/net/wellenreiter/gui') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 8a9e55d..448b52b 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -490,19 +490,24 @@ void Wellenreiter::doAction( const QString& action, const QString& protocol, OPa
490 QMessageBox::information ( this, "Notification!", 490 QMessageBox::information ( this, "Notification!",
491 QString().sprintf( "Got packet with protocol '%s'", (const char*) protocol ) ); 491 QString().sprintf( "Got packet with protocol '%s'", (const char*) protocol ) );
492} 492}
493 493
494void Wellenreiter::joinNetwork(const QString& type, const QString& essid, int channel, const QString& macaddr) 494void Wellenreiter::joinNetwork(const QString& type, const QString& essid, int channel, const QString& macaddr)
495{ 495{
496 // we need the interface too:
497 const QString iface = "wlan0";
496 qDebug( "joinNetwork() - %s, %s, %d, %s", 498 qDebug( "joinNetwork() - %s, %s, %d, %s",
497 (const char*) type, 499 (const char*) type,
498 (const char*) essid, 500 (const char*) essid,
499 channel, 501 channel,
500 (const char*) macaddr ); 502 (const char*) macaddr );
501 503
502 // TODO: Stop scanning here 504 // TODO: Stop scanning here
503 505
504 QCopEnvelope msg( "QPE/Application/networksettings", "wlan(QString,QString,QString)" ); 506 QCopEnvelope msg( "QPE/Application/networksettings", "wlan(QString,QString,QString)" );
505 msg << "test" << "test" << "test"; 507 msg << iface << QString("Mode") << type;
508 msg << iface << QString("ESSID") << essid;
509 msg << iface << QString("Channel") << channel;
510 msg << iface << QString("MacAddr") << macaddr;
506 511
507} 512}
508 513