-rw-r--r-- | noncore/net/opiestumbler/opiestumbler.cpp | 14 | ||||
-rw-r--r-- | noncore/net/opiestumbler/opiestumbler.h | 2 | ||||
-rw-r--r-- | noncore/net/opiestumbler/stationinfo.h | 2 | ||||
-rw-r--r-- | noncore/net/opiestumbler/stumbler.cpp | 4 | ||||
-rw-r--r-- | noncore/net/opiestumbler/stumblersettings.h | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/noncore/net/opiestumbler/opiestumbler.cpp b/noncore/net/opiestumbler/opiestumbler.cpp index bc4a7ab..2f4f54b 100644 --- a/noncore/net/opiestumbler/opiestumbler.cpp +++ b/noncore/net/opiestumbler/opiestumbler.cpp @@ -62,17 +62,17 @@ OpieStumbler::OpieStumbler(QWidget *parent, const char *name, WFlags) lay->addWidget(m_listCurrent); lay->addWidget(m_listHistory); grid->addLayout(lay, 0, 0); - m_stationsCurrent->setAutoDelete(TRUE); + m_stationsCurrent->setAutoDelete(true); m_channel = new QCopChannel( "QPE/OpieStumbler", this ); connect(m_channel, SIGNAL(received(const QCString &, const QByteArray &)), this, SLOT(slotMessageReceived( const QCString &, const QByteArray &)) ); //setCaption(appCaption()); //setCentralWidget(grid); - setToolBarsMovable(FALSE); + setToolBarsMovable(false); QPopupMenu *fileMenu = new QPopupMenu(this); QPopupMenu *configMenu = new QPopupMenu(this); @@ -126,9 +126,9 @@ OpieStumbler::OpieStumbler(QWidget *parent, const char *name, WFlags) } void OpieStumbler::slotConfigure() { - StumblerSettings settings(this, "Settings", TRUE); + StumblerSettings settings(this, "Settings", true); if (settings.exec() == QDialog::Accepted) loadConfig(); } @@ -233,10 +233,10 @@ void OpieStumbler::slotShowDetails() if( it.current() ) { StationInfo info(it.current()->st->ssid, it.current()->st->type, QString::number(it.current()->st->channel), QString::number(it.current()->st->rates.last()/1000000), QString::number(it.current()->st->level), it.current()->st->encrypted ? "WEP": "No", - it.current()->st->macAddress.toString(), manufacturer(it.current()->st->macAddress.toString(), TRUE), - it.current()->lastTimeSeen.toString() ,this, "", TRUE); + it.current()->st->macAddress.toString(), manufacturer(it.current()->st->macAddress.toString(), true), + it.current()->lastTimeSeen.toString() ,this, "", true); info.exec(); } } @@ -294,9 +294,9 @@ void OpieStumbler::slotJoinNetwork() Opie::Net::OStation *station = it.current()->st; odebug << "Bringing interface down" << oendl; - wiface->setUp(FALSE); + wiface->setUp(false); odebug << "Setting mode to " << (station->type == "adhoc" ? "adhoc" : "managed") << oendl; wiface->setMode(station->type == "adhoc" ? "adhoc" : "managed" ); @@ -308,9 +308,9 @@ void OpieStumbler::slotJoinNetwork() wiface->commit(); odebug << "Bringing interface up" << oendl; - wiface->setUp(TRUE); + wiface->setUp(true); m_pbar->setProgress(1); //Wait 5 sec for association QTimer::singleShot(5000, this, SLOT(slotAssociated())); } diff --git a/noncore/net/opiestumbler/opiestumbler.h b/noncore/net/opiestumbler/opiestumbler.h index 84a69ba..263af6e 100644 --- a/noncore/net/opiestumbler/opiestumbler.h +++ b/noncore/net/opiestumbler/opiestumbler.h @@ -39,9 +39,9 @@ public: OpieStumbler(QWidget *parent = 0, const char *name = 0, WFlags f = 0); static QString appName() { return QString::fromLatin1("opiestumbler"); } static QString appCaption(); void displayStations(); - QString manufacturer(const QString &mac, bool extended = FALSE ); + QString manufacturer(const QString &mac, bool extended = false ); protected slots: void slotConfigure(); void slotStartScanning(); void slotStopScanning(); diff --git a/noncore/net/opiestumbler/stationinfo.h b/noncore/net/opiestumbler/stationinfo.h index f8798a6..aa42932 100644 --- a/noncore/net/opiestumbler/stationinfo.h +++ b/noncore/net/opiestumbler/stationinfo.h @@ -15,9 +15,9 @@ class StationInfo: public QDialog public: StationInfo( const QString &essid, const QString &type, const QString &channel, const QString &maxrate, const QString &level, const QString &encryption, const QString &address, const QString &vendor, const QString &time, - QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); + QWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 ); protected: QLabel *m_ssidLabel; QLabel *m_typeLabel; diff --git a/noncore/net/opiestumbler/stumbler.cpp b/noncore/net/opiestumbler/stumbler.cpp index cda6b99..10e89ce 100644 --- a/noncore/net/opiestumbler/stumbler.cpp +++ b/noncore/net/opiestumbler/stumbler.cpp @@ -34,12 +34,12 @@ void Stumbler::start() } if (!m_timer->isActive()) { odebug << "Starting stumbler" << oendl; - m_wiface->setUp(FALSE); + m_wiface->setUp(false); m_wiface->setSSID("any"); m_wiface->setAssociatedAP( OMacAddress::broadcast ); - m_wiface->setUp(TRUE); + m_wiface->setUp(true); m_timer->start(m_interval); } } diff --git a/noncore/net/opiestumbler/stumblersettings.h b/noncore/net/opiestumbler/stumblersettings.h index 997fc85..f444eba 100644 --- a/noncore/net/opiestumbler/stumblersettings.h +++ b/noncore/net/opiestumbler/stumblersettings.h @@ -8,9 +8,9 @@ class QLineEdit; class StumblerSettings: public QDialog { public: - StumblerSettings(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags f = 0); + StumblerSettings(QWidget* parent = 0, const char* name = 0, bool modal = false, WFlags f = 0); ~StumblerSettings(); protected slots: void accept(); |