Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OpieStumbler Class Reference

#include </home/clem/local/src/opie/noncore/net/opiestumbler/opiestumbler.h>

Collaboration diagram for OpieStumbler:

Collaboration graph
[legend]
List of all members.

Public Types

enum  CurrentColumns { CURSSID, CURCHAN, CURSIGNAL, CURENC }
enum  HistoryColumns {
  HISSSID, HISCHAN, HISSIGNAL, HISENC,
  HISVENDOR
}

Public Member Functions

 OpieStumbler (QWidget *parent=0, const char *name=0, WFlags f=0)
void displayStations ()
QString manufacturer (const QString &mac, bool extended=false)

Static Public Member Functions

static QString appName ()
static QString appCaption ()

Protected Slots

void slotConfigure ()
void slotStartScanning ()
void slotStopScanning ()
void slotUpdateStations ()
void slotMessageReceived (const QCString &, const QByteArray &)
void slotCurrentMousePressed (int button, QListViewItem *item, const QPoint &point, int c)
void slotHistoryMousePressed (int button, QListViewItem *item, const QPoint &point, int c)
void slotShowDetails ()
void slotLoadManufacturers ()
void slotJoinNetwork ()
void slotAssociated ()
void slotCheckDHCP ()
void slotCleanSplash ()

Protected Member Functions

void loadConfig ()

Protected Attributes

QListView * m_listCurrent
QListView * m_listHistory
QString m_interface
Stumblerm_stumbler
QCopChannelm_channel
QList< Opie::Net::OStation > * m_stationsCurrent
QList< StumblerStationm_stationsHistory
QPopupMenu * m_popupCurrent
QPopupMenu * m_popupHistory
Opie::Net::OManufacturerDBm_db
QString m_mac
QString m_ssid
Opie::Core::OProcessm_proc
QFrame * m_splash
QVBoxLayout * m_splashBox
QLabel * m_infoLabel
QProgressBar * m_pbar

Member Enumeration Documentation

enum OpieStumbler::CurrentColumns
 

Enumeration values:
CURSSID 
CURCHAN 
CURSIGNAL 
CURENC 

Definition at line 37 of file opiestumbler.h.

enum OpieStumbler::HistoryColumns
 

Enumeration values:
HISSSID 
HISCHAN 
HISSIGNAL 
HISENC 
HISVENDOR 

Definition at line 38 of file opiestumbler.h.


Constructor & Destructor Documentation

OpieStumbler::OpieStumbler QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 43 of file opiestumbler.cpp.

References Qt::AlignHCenter, CURCHAN, CURENC, i, QCopChannel::isRegistered(), loadConfig(), m_channel, m_interface, m_listCurrent, m_listHistory, m_popupCurrent, m_stationsCurrent, m_stumbler, NULL, QPEApplication::RightOnHold, QPEApplication::setStylusOperation(), slotConfigure(), slotCurrentMousePressed(), slotHistoryMousePressed(), slotJoinNetwork(), slotLoadManufacturers(), slotMessageReceived(), slotShowDetails(), slotStartScanning(), slotStopScanning(), slotUpdateStations(), and tr.


Member Function Documentation

QString OpieStumbler::appCaption  )  [static]
 

Definition at line 39 of file opiestumbler.cpp.

References tr.

Referenced by slotStartScanning(), and slotStopScanning().

static QString OpieStumbler::appName  )  [inline, static]
 

Definition at line 40 of file opiestumbler.h.

References QString::fromLatin1().

void OpieStumbler::displayStations  ) 
 

Definition at line 184 of file opiestumbler.cpp.

References m_listCurrent, m_listHistory, m_stationsCurrent, m_stationsHistory, manufacturer(), and QString::number().

Referenced by slotUpdateStations().

void OpieStumbler::loadConfig  )  [protected]
 

Definition at line 134 of file opiestumbler.cpp.

References m_interface, Config::readEntry(), Config::setGroup(), and Config::User.

Referenced by OpieStumbler(), and slotConfigure().

QString OpieStumbler::manufacturer const QString mac,
bool  extended = false
 

Definition at line 248 of file opiestumbler.cpp.

References QString::isEmpty(), Opie::Net::OManufacturerDB::lookup(), Opie::Net::OManufacturerDB::lookupExt(), m_db, and tr.

Referenced by displayStations(), and slotShowDetails().

void OpieStumbler::slotAssociated  )  [protected, slot]
 

Definition at line 317 of file opiestumbler.cpp.

References Opie::Core::OProcess::DontCare, Opie::Net::OWirelessNetworkInterface::isAssociated(), Opie::Core::OProcess::kill(), m_infoLabel, m_interface, m_pbar, m_proc, m_ssid, OProcess, slotCheckDHCP(), slotCleanSplash(), Opie::Core::OProcess::start(), Global::statusMessage(), and tr.

Referenced by slotJoinNetwork().

void OpieStumbler::slotCheckDHCP  )  [protected, slot]
 

Definition at line 349 of file opiestumbler.cpp.

References Opie::Net::ONetworkInterface::ipV4Address(), Opie::Core::OProcess::isRunning(), m_infoLabel, m_interface, m_listCurrent, m_pbar, m_proc, NULL, slotCleanSplash(), Global::statusMessage(), and tr.

Referenced by slotAssociated().

void OpieStumbler::slotCleanSplash  )  [protected, slot]
 

Definition at line 370 of file opiestumbler.cpp.

References m_infoLabel, m_pbar, m_splash, and m_splashBox.

Referenced by slotAssociated(), and slotCheckDHCP().

void OpieStumbler::slotConfigure  )  [protected, slot]
 

Definition at line 127 of file opiestumbler.cpp.

References loadConfig().

Referenced by OpieStumbler().

void OpieStumbler::slotCurrentMousePressed int  button,
QListViewItem *  item,
const QPoint &  point,
int  c
[protected, slot]
 

Definition at line 206 of file opiestumbler.cpp.

References CURENC, m_mac, and m_popupCurrent.

Referenced by OpieStumbler().

void OpieStumbler::slotHistoryMousePressed int  button,
QListViewItem *  item,
const QPoint &  point,
int  c
[protected, slot]
 

Definition at line 217 of file opiestumbler.cpp.

References HISVENDOR, m_mac, and m_popupHistory.

Referenced by OpieStumbler().

void OpieStumbler::slotJoinNetwork  )  [protected, slot]
 

Definition at line 263 of file opiestumbler.cpp.

References Opie::Net::OStation::channel, Opie::Net::OWirelessNetworkInterface::commit(), m_infoLabel, m_interface, m_mac, m_pbar, m_splash, m_splashBox, m_ssid, m_stationsHistory, odebug, oendl, qApp, Opie::Net::OWirelessNetworkInterface::setChannel(), Opie::Net::OWirelessNetworkInterface::setMode(), Opie::Net::OWirelessNetworkInterface::setSSID(), Opie::Net::ONetworkInterface::setUp(), slotAssociated(), slotStopScanning(), Opie::Net::OStation::ssid, tr, and Opie::Net::OStation::type.

Referenced by OpieStumbler().

void OpieStumbler::slotLoadManufacturers  )  [protected, slot]
 

Definition at line 243 of file opiestumbler.cpp.

References Opie::Net::OManufacturerDB::instance(), and m_db.

Referenced by OpieStumbler().

void OpieStumbler::slotMessageReceived const QCString ,
const QByteArray
[protected, slot]
 

Definition at line 198 of file opiestumbler.cpp.

Referenced by OpieStumbler().

void OpieStumbler::slotShowDetails  )  [protected, slot]
 

Definition at line 227 of file opiestumbler.cpp.

References m_mac, m_stationsHistory, manufacturer(), and QString::number().

Referenced by OpieStumbler().

void OpieStumbler::slotStartScanning  )  [protected, slot]
 

Definition at line 141 of file opiestumbler.cpp.

References appCaption(), m_stumbler, Stumbler::start(), and tr.

Referenced by OpieStumbler().

void OpieStumbler::slotStopScanning  )  [protected, slot]
 

Definition at line 147 of file opiestumbler.cpp.

References appCaption(), m_stumbler, and Stumbler::stop().

Referenced by OpieStumbler(), and slotJoinNetwork().

void OpieStumbler::slotUpdateStations  )  [protected, slot]
 

Definition at line 153 of file opiestumbler.cpp.

References QDateTime::currentDateTime(), displayStations(), Opie::Net::OStation::level, m_stationsCurrent, m_stationsHistory, m_stumbler, Opie::Net::OStation::macAddress, and Stumbler::stations().

Referenced by OpieStumbler().


Member Data Documentation

QCopChannel* OpieStumbler::m_channel [protected]
 

Definition at line 65 of file opiestumbler.h.

Referenced by OpieStumbler().

Opie::Net::OManufacturerDB* OpieStumbler::m_db [protected]
 

Definition at line 70 of file opiestumbler.h.

Referenced by manufacturer(), and slotLoadManufacturers().

QLabel* OpieStumbler::m_infoLabel [protected]
 

Definition at line 76 of file opiestumbler.h.

Referenced by slotAssociated(), slotCheckDHCP(), slotCleanSplash(), and slotJoinNetwork().

QString OpieStumbler::m_interface [protected]
 

Definition at line 63 of file opiestumbler.h.

Referenced by loadConfig(), OpieStumbler(), slotAssociated(), slotCheckDHCP(), and slotJoinNetwork().

QListView* OpieStumbler::m_listCurrent [protected]
 

Definition at line 61 of file opiestumbler.h.

Referenced by displayStations(), OpieStumbler(), and slotCheckDHCP().

QListView* OpieStumbler::m_listHistory [protected]
 

Definition at line 62 of file opiestumbler.h.

Referenced by displayStations(), and OpieStumbler().

QString OpieStumbler::m_mac [protected]
 

Definition at line 71 of file opiestumbler.h.

Referenced by slotCurrentMousePressed(), slotHistoryMousePressed(), slotJoinNetwork(), and slotShowDetails().

QProgressBar* OpieStumbler::m_pbar [protected]
 

Definition at line 77 of file opiestumbler.h.

Referenced by slotAssociated(), slotCheckDHCP(), slotCleanSplash(), and slotJoinNetwork().

QPopupMenu* OpieStumbler::m_popupCurrent [protected]
 

Definition at line 68 of file opiestumbler.h.

Referenced by OpieStumbler(), and slotCurrentMousePressed().

QPopupMenu* OpieStumbler::m_popupHistory [protected]
 

Definition at line 69 of file opiestumbler.h.

Referenced by slotHistoryMousePressed().

Opie::Core::OProcess* OpieStumbler::m_proc [protected]
 

Definition at line 73 of file opiestumbler.h.

Referenced by slotAssociated(), and slotCheckDHCP().

QFrame* OpieStumbler::m_splash [protected]
 

Definition at line 74 of file opiestumbler.h.

Referenced by slotCleanSplash(), and slotJoinNetwork().

QVBoxLayout* OpieStumbler::m_splashBox [protected]
 

Definition at line 75 of file opiestumbler.h.

Referenced by slotCleanSplash(), and slotJoinNetwork().

QString OpieStumbler::m_ssid [protected]
 

Definition at line 72 of file opiestumbler.h.

Referenced by slotAssociated(), and slotJoinNetwork().

QList<Opie::Net::OStation>* OpieStumbler::m_stationsCurrent [protected]
 

Definition at line 66 of file opiestumbler.h.

Referenced by displayStations(), OpieStumbler(), and slotUpdateStations().

QList<StumblerStation> OpieStumbler::m_stationsHistory [protected]
 

Definition at line 67 of file opiestumbler.h.

Referenced by displayStations(), slotJoinNetwork(), slotShowDetails(), and slotUpdateStations().

Stumbler* OpieStumbler::m_stumbler [protected]
 

Definition at line 64 of file opiestumbler.h.

Referenced by OpieStumbler(), slotStartScanning(), slotStopScanning(), and slotUpdateStations().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:43:04 2005 for OPIE by  doxygen 1.4.2