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

WExtensions Class Reference

#include </home/clem/local/src/opie/noncore/settings/networksettings/wlan/wextensions.h>

Collaboration diagram for WExtensions:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WExtensions (QString interfaceName)
QString getInterfaceName ()
bool doesHaveWirelessExtensions ()
QString station ()
QString essid ()
QString mode ()
double frequency ()
int channel ()
double rate ()
QString ap ()
bool stats (int &signal, int &noise, int &quality)
 WExtensions (QString interfaceName)
QString getInterfaceName ()
bool doesHaveWirelessExtensions ()
QString station ()
QString essid ()
QString mode ()
double frequency ()
int channel ()
double rate ()
QString ap ()
bool stats (int &signal, int &noise, int &quality)

Private Attributes

bool hasWirelessExtensions
QString interface
iwreq iwr
int fd
iwreq iwr

Constructor & Destructor Documentation

WExtensions::WExtensions QString  interfaceName  ) 
 

Constructor. Sets hasWirelessExtensions

Definition at line 26 of file wextensions.cpp.

References fd, hasWirelessExtensions, interface, iwr, and QString::latin1().

WExtensions::WExtensions QString  interfaceName  ) 
 


Member Function Documentation

QString WExtensions::ap  ) 
 

QString WExtensions::ap  ) 
 

Returns:
QString the AccessPoint that the interface is connected to.

Definition at line 150 of file wextensions.cpp.

References fd, hasWirelessExtensions, iwr, and QString::sprintf().

Referenced by WlanInfoImp::update(), and WLanEdit::WLanEdit().

int WExtensions::channel  ) 
 

int WExtensions::channel  ) 
 

Get the channel that the interface is running at.

Returns:
int the channel that the interfacae is running at.

Definition at line 112 of file wextensions.cpp.

References fd, hasWirelessExtensions, iwr, odebug, and oendl.

Referenced by WlanInfoImp::update(), and WLanEdit::WLanEdit().

bool WExtensions::doesHaveWirelessExtensions  )  [inline]
 

Definition at line 14 of file wextensions.h.

References hasWirelessExtensions.

bool WExtensions::doesHaveWirelessExtensions  )  [inline]
 

Definition at line 14 of file wextensions.h.

References hasWirelessExtensions.

Referenced by WLANModule::information(), WLANModule::isOwner(), WlanInfoImp::update(), WLanEdit::WLanEdit(), and WlanInfoImp::WlanInfoImp().

QString WExtensions::essid  ) 
 

QString WExtensions::essid  ) 
 

Returns:
QString the essid of the host 802.11 access point.

Definition at line 68 of file wextensions.cpp.

References fd, hasWirelessExtensions, iwr, and QString::null.

Referenced by WlanInfoImp::update(), and WLanEdit::WLanEdit().

double WExtensions::frequency  ) 
 

double WExtensions::frequency  ) 
 

Get the frequency that the interface is running at.

Returns:
int the frequency that the interfacae is running at.

Definition at line 100 of file wextensions.cpp.

References fd, hasWirelessExtensions, and iwr.

Referenced by WLanEdit::WLanEdit().

QString WExtensions::getInterfaceName  )  [inline]
 

Definition at line 13 of file wextensions.h.

References interface.

QString WExtensions::getInterfaceName  )  [inline]
 

Definition at line 13 of file wextensions.h.

References interface.

QString WExtensions::mode  ) 
 

QString WExtensions::mode  ) 
 

Returns:
QString the mode of interface

Definition at line 88 of file wextensions.cpp.

References fd, hasWirelessExtensions, and iwr.

Referenced by WlanInfoImp::update(), and WLanEdit::WLanEdit().

double WExtensions::rate  ) 
 

double WExtensions::rate  ) 
 

Definition at line 137 of file wextensions.cpp.

References fd, hasWirelessExtensions, and iwr.

Referenced by WlanInfoImp::update(), and WLanEdit::WLanEdit().

QString WExtensions::station  ) 
 

QString WExtensions::station  ) 
 

Returns:
QString the station name of the access point.

Definition at line 51 of file wextensions.cpp.

References fd, hasWirelessExtensions, iwr, and QString::null.

Referenced by WlanInfoImp::update(), and WLanEdit::WLanEdit().

bool WExtensions::stats int &  signal,
int &  noise,
int &  quality
 

bool WExtensions::stats int &  signal,
int &  noise,
int &  quality
 

Get the stats for interfaces

Parameters:
signal the signal strength of interface
noise the noise level of the interface
quality the quality level of the interface
Returns:
bool true if successful

Definition at line 174 of file wextensions.cpp.

References QTextStream::atEnd(), QFile::exists(), interface, IO_ReadOnly, IW_LOWER, IW_UPPER, name, odebug, oendl, QFile::open(), PROCNETWIRELESS, and QTextStream::readLine().

Referenced by WLanEdit::SLOT_Refresh(), and WlanInfoImp::update().


Member Data Documentation

int WExtensions::fd [private]
 

Definition at line 30 of file wextensions.h.

Referenced by ap(), channel(), essid(), frequency(), mode(), rate(), station(), and WExtensions().

bool WExtensions::hasWirelessExtensions [private]
 

Definition at line 25 of file wextensions.h.

Referenced by ap(), channel(), doesHaveWirelessExtensions(), essid(), frequency(), mode(), rate(), station(), and WExtensions().

QString WExtensions::interface [private]
 

Definition at line 26 of file wextensions.h.

Referenced by getInterfaceName(), stats(), and WExtensions().

struct iwreq WExtensions::iwr [private]
 

Definition at line 29 of file wextensions.h.

struct iwreq WExtensions::iwr [private]
 

Definition at line 29 of file wextensions.h.

Referenced by ap(), channel(), essid(), frequency(), mode(), rate(), station(), and WExtensions().


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