summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/wellenreiter.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 2f26702..8a9e55d 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -27,8 +27,9 @@
// Opie
#ifdef QWS
#include <opie/odevice.h>
+#include <qpe/qcopenvelope_qws.h>
using namespace Opie;
#endif
#ifdef QWS
@@ -80,8 +81,10 @@ Wellenreiter::Wellenreiter( QWidget* parent )
logwindow->log( sys );
#endif
netview->setColumnWidthMode( 1, QListView::Manual );
+ connect( netview, SIGNAL( joinNetwork(const QString&,const QString&,int,const QString&) ),
+ this, SLOT( joinNetwork(const QString&,const QString&,int,const QString&) ) );
pcap = new OPacketCapturer();
}
@@ -487,4 +490,19 @@ void Wellenreiter::doAction( const QString& action, const QString& protocol, OPa
QMessageBox::information ( this, "Notification!",
QString().sprintf( "Got packet with protocol '%s'", (const char*) protocol ) );
}
+void Wellenreiter::joinNetwork(const QString& type, const QString& essid, int channel, const QString& macaddr)
+{
+ qDebug( "joinNetwork() - %s, %s, %d, %s",
+ (const char*) type,
+ (const char*) essid,
+ channel,
+ (const char*) macaddr );
+
+ // TODO: Stop scanning here
+
+ QCopEnvelope msg( "QPE/Application/networksettings", "wlan(QString,QString,QString)" );
+ msg << "test" << "test" << "test";
+
+}
+