author | mickeyl <mickeyl> | 2003-03-31 10:20:23 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-03-31 10:20:23 (UTC) |
commit | 2318b309ef4c5147fa1a975b7b261ceec5dd13a7 (patch) (side-by-side diff) | |
tree | 6deeb4aa1179bb69d6bb1b0bd0ee731e80ad896c /noncore/net/wellenreiter/gui/wellenreiter.cpp | |
parent | ab65bc6a80f1c93ebd54b8c65563efde934dc45a (diff) | |
download | opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.zip opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.tar.gz opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.tar.bz2 |
reenable the X11 standalone build (qmake platform=x11 wellenreiter.pro)
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index 3bff7c4..41ffdcc 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -10,31 +10,35 @@ ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ***********************************************************************/ -// Qt - -#include <qpushbutton.h> -#include <qmessagebox.h> -#include <qcombobox.h> -#include <qspinbox.h> -#include <qsocketnotifier.h> - // Opie #ifdef QWS #include <opie/odevice.h> using namespace Opie; #endif +#ifdef QWS #include <opie2/oapplication.h> +#else +#include <qapplication.h> +#endif #include <opie2/onetwork.h> #include <opie2/opcap.h> +// Qt + +#include <qpushbutton.h> +#include <qmessagebox.h> +#include <qcombobox.h> +#include <qspinbox.h> +#include <qsocketnotifier.h> + // Standard #include <assert.h> #include <errno.h> #include <unistd.h> #include <string.h> @@ -140,13 +144,17 @@ void Wellenreiter::startStopClicked() { disconnect( SIGNAL( receivedPacket(OPacket*) ), this, SLOT( receivePacket(OPacket*) ) ); iface->setChannelHopping(); // stop hopping channels pcap->close(); sniffing = false; + #ifdef QWS oApp->setTitle(); + #else + qApp->mainWidget()->setCaption( "Wellenreiter II" ); + #endif // get interface name from config window const QString& interface = configwindow->interfaceName->currentText(); ONetwork* net = ONetwork::instance(); iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); @@ -218,11 +226,15 @@ void Wellenreiter::startStopClicked() iface->setChannelHopping( 1000 ); //use interval from config window // connect connect( pcap, SIGNAL( receivedPacket(OPacket*) ), this, SLOT( receivePacket(OPacket*) ) ); logwindow->log( "(i) Daemon has been started." ); + #ifdef QWS oApp->setTitle( "Scanning ..." ); + #else + qApp->mainWidget()->setCaption( "Wellenreiter II / Scanning ..." ); + #endif sniffing = true; } } |