author | mickeyl <mickeyl> | 2005-05-10 17:27:42 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-10 17:27:42 (UTC) |
commit | 7ef3deff5f0023f0e73ad805b13cbd2b12bc1395 (patch) (unidiff) | |
tree | 17e209a557b79fd47a82301dae8982a3d16a4cdf /noncore/net/wellenreiter/gui | |
parent | e31f22952f47aeb54b206349f1e469704a6a6e8f (diff) | |
download | opie-7ef3deff5f0023f0e73ad805b13cbd2b12bc1395.zip opie-7ef3deff5f0023f0e73ad805b13cbd2b12bc1395.tar.gz opie-7ef3deff5f0023f0e73ad805b13cbd2b12bc1395.tar.bz2 |
Remove joining networks from Wellenreiter. It never really fit into the
philosophy of this application and with OpieStumbler there is an application
that does it better (active scan).
Diffstat (limited to 'noncore/net/wellenreiter/gui') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/gui.pro | 2 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.cpp | 11 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.h | 1 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 39 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.h | 2 |
5 files changed, 3 insertions, 52 deletions
diff --git a/noncore/net/wellenreiter/gui/gui.pro b/noncore/net/wellenreiter/gui/gui.pro index faedd1b..544c2af 100644 --- a/noncore/net/wellenreiter/gui/gui.pro +++ b/noncore/net/wellenreiter/gui/gui.pro | |||
@@ -34,5 +34,5 @@ DEPENDPATH += $(OPIEDIR)/include | |||
34 | INTERFACES = configbase.ui | 34 | INTERFACES = configbase.ui |
35 | TARGET = wellenreiter | 35 | TARGET = wellenreiter |
36 | VERSION = 1.0.5 | 36 | VERSION = 1.0.6 |
37 | 37 | ||
38 | DEFINES += WELLENREITER_VERSION='"$$VERSION (GPL) Opie"' | 38 | DEFINES += WELLENREITER_VERSION='"$$VERSION (GPL) Opie"' |
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp index f24e09f..587faad 100644 --- a/noncore/net/wellenreiter/gui/scanlist.cpp +++ b/noncore/net/wellenreiter/gui/scanlist.cpp | |||
@@ -403,14 +403,7 @@ void MScanListView::contextMenuRequested( QListViewItem* item, const QPoint&, in | |||
403 | << itm->type << ") in column: '" << col << "'" << oendl; | 403 | << itm->type << ") in column: '" << col << "'" << oendl; |
404 | 404 | ||
405 | if ( itm->type == "adhoc" || itm->type == "managed" ) | 405 | /* do something meaningful */ |
406 | { | ||
407 | QString entry = QString( "&Join %1 Net '%2'..." ).arg( itm->type ).arg( itm->essid() ); | ||
408 | 406 | ||
409 | QPopupMenu m( this ); | 407 | return; |
410 | m.insertItem( entry, 37773, 0 ); | ||
411 | int result = m.exec( QCursor::pos() ); | ||
412 | if ( result == 37773 ) | ||
413 | emit joinNetwork( itm->type, itm->essid(), itm->channel(), itm->macaddr() ); | ||
414 | } | ||
415 | } | 408 | } |
416 | 409 | ||
diff --git a/noncore/net/wellenreiter/gui/scanlist.h b/noncore/net/wellenreiter/gui/scanlist.h index 8b3814a..eec51af 100644 --- a/noncore/net/wellenreiter/gui/scanlist.h +++ b/noncore/net/wellenreiter/gui/scanlist.h | |||
@@ -56,5 +56,4 @@ class MScanListView: public Opie::Ui::OListView | |||
56 | signals: | 56 | signals: |
57 | void rightButtonClicked(QListViewItem*,const QPoint&,int); | 57 | void rightButtonClicked(QListViewItem*,const QPoint&,int); |
58 | void joinNetwork( const QString&, const QString&, int, const QString& ); | ||
59 | 58 | ||
60 | protected: | 59 | protected: |
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index 8cabf0d..c4e6f02 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp | |||
@@ -83,6 +83,4 @@ Wellenreiter::Wellenreiter( QWidget* parent ) | |||
83 | 83 | ||
84 | netview->setColumnWidthMode( 1, QListView::Manual ); | 84 | netview->setColumnWidthMode( 1, QListView::Manual ); |
85 | connect( netview, SIGNAL( joinNetwork(const QString&,const QString&,int,const QString&) ), | ||
86 | this, SLOT( joinNetwork(const QString&,const QString&,int,const QString&) ) ); | ||
87 | pcap = new OPacketCapturer(); | 85 | pcap = new OPacketCapturer(); |
88 | pcap->setAutoDelete( false ); | 86 | pcap->setAutoDelete( false ); |
@@ -729,41 +727,4 @@ void Wellenreiter::doAction( const QString& action, const QString& protocol, OPa | |||
729 | } | 727 | } |
730 | 728 | ||
731 | void Wellenreiter::joinNetwork(const QString& type, const QString& essid, int channel, const QString& macaddr) | ||
732 | { | ||
733 | #ifdef QWS | ||
734 | if ( !iface ) | ||
735 | { | ||
736 | QMessageBox::warning( this, tr( "Can't do that!" ), tr( "No wireless\ninterface available." ) ); | ||
737 | return; | ||
738 | } | ||
739 | |||
740 | if ( sniffing ) | ||
741 | { | ||
742 | QMessageBox::warning( this, tr( "Can't do that!" ), tr( "Stop sniffing before\njoining a net." ) ); | ||
743 | return; | ||
744 | } | ||
745 | |||
746 | odebug << "joinNetwork() with Interface " << iface->name() | ||
747 | << ": " << type << ", " << essid | ||
748 | << ", " << channel << ", " << macaddr << oendl; | ||
749 | |||
750 | QCopEnvelope msg( "QPE/Application/networksettings", "wlan(QString,QString,QString)" ); | ||
751 | int count = 3; | ||
752 | odebug << "sending " << count << " messages" << oendl; | ||
753 | msg << QString("count") << QString::number(count); | ||
754 | odebug << "msg >" << iface->name() << "< Mode >" << type.latin1() << "<" << oendl; | ||
755 | msg << QString(iface->name()) << QString("Mode") << type; | ||
756 | odebug << "msg >" << iface->name() << "< essid >" << essid.latin1() << "<" << oendl; | ||
757 | msg << QString(iface->name()) << QString("ESSID") << essid; | ||
758 | odebug << "msg >" << iface->name() << "< channel >" << channel << "<" << oendl; | ||
759 | msg << QString(iface->name()) << QString("Channel") << channel; | ||
760 | // odebug << "msg >" << iface->name() << "< mac >" << macaddr << "<" << oendl; | ||
761 | // msg << QString(iface->name()) << QString("MacAddr") << macaddr; | ||
762 | #else | ||
763 | QMessageBox::warning( this, tr( "Can't do that!" ), tr( "Function only available on Embedded build" ) ); | ||
764 | #endif | ||
765 | |||
766 | } | ||
767 | |||
768 | void Wellenreiter::updateStatistics() | 729 | void Wellenreiter::updateStatistics() |
769 | { | 730 | { |
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h index 5ac389e..1c9633d 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.h +++ b/noncore/net/wellenreiter/gui/wellenreiter.h | |||
@@ -72,6 +72,4 @@ class Wellenreiter : public WellenreiterBase { | |||
72 | void stopClicked(); | 72 | void stopClicked(); |
73 | 73 | ||
74 | void joinNetwork(const QString&,const QString&,int,const QString&); | ||
75 | |||
76 | signals: | 74 | signals: |
77 | void startedSniffing(); | 75 | void startedSniffing(); |