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

WLANModule Class Reference

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

Inheritance diagram for WLANModule:

Inheritance graph
[legend]
Collaboration diagram for WLANModule:

Collaboration graph
[legend]
List of all members.

Signals

void updateInterface (Interface *i)

Public Member Functions

 WLANModule ()
 ~WLANModule ()
virtual const QString type ()
void setProfile (const QString &newProfile)
bool isOwner (Interface *)
QWidget * configure (Interface *i)
QWidget * information (Interface *i)
QList< InterfacegetInterfaces ()
void possibleNewInterfaces (QMap< QString, QString > &)
InterfaceaddNewInterface (const QString &name)
bool remove (Interface *i)
QString getPixmapName (Interface *i)
virtual void receive (const QCString &, const QByteArray &)

Private Member Functions

QWidget * getInfo (Interface *)

Private Attributes

WLANImpwlanconfigWiget
QList< Interfacelist
QString profile

Constructor & Destructor Documentation

WLANModule::WLANModule  ) 
 

Constructor, find all of the possible interfaces

Definition at line 26 of file wlanmodule.cpp.

WLANModule::~WLANModule  ) 
 

Delete any interfaces that we own.

Definition at line 35 of file wlanmodule.cpp.

References i, and list.


Member Function Documentation

Interface * WLANModule::addNewInterface const QString name  )  [virtual]
 

Attempt to add a new interface as defined by name

Parameters:
name the name of the type of interface that should be created given by possibleNewInterfaces();
Returns:
Interface* NULL if it was unable to be created.

Implements Module.

Definition at line 110 of file wlanmodule.cpp.

References NULL.

QWidget * WLANModule::configure Interface i  )  [virtual]
 

Create, and return the WLANConfigure Module

Returns:
QWidget* pointer to this modules configure.

Reimplemented from Module.

Definition at line 77 of file wlanmodule.cpp.

References profile, WLANImp::setProfile(), and Qt::WDestructiveClose.

Referenced by receive().

QWidget * WLANModule::getInfo Interface  )  [private]
 

Definition at line 243 of file wlanmodule.cpp.

References information(), odebug, oendl, and Qt::WDestructiveClose.

Referenced by information(), and receive().

QList< Interface > WLANModule::getInterfaces  )  [virtual]
 

Get all active (up or down) interfaces

Returns:
QList<Interface> A list of interfaces that exist that havn't been called by isOwner()

Implements Module.

Definition at line 100 of file wlanmodule.cpp.

References list.

QString WLANModule::getPixmapName Interface i  )  [virtual]
 

get the icon name for this device.

Parameters:
Interface* can be used in determining the icon.
Returns:
QString the icon name (minus .png, .gif etc)

Implements Module.

Definition at line 54 of file wlanmodule.cpp.

QWidget * WLANModule::information Interface i  )  [virtual]
 

Create, and return the Information Module

Returns:
QWidget* pointer to this modules info.

Reimplemented from Module.

Definition at line 87 of file wlanmodule.cpp.

References WExtensions::doesHaveWirelessExtensions(), getInfo(), and NULL.

Referenced by getInfo().

bool WLANModule::isOwner Interface i  )  [virtual]
 

Check to see if the interface i is owned by this module.

Parameters:
Interface* interface to check against
Returns:
bool true if i is owned by this module, false otherwise.

Reimplemented from Module.

Definition at line 63 of file wlanmodule.cpp.

References WExtensions::doesHaveWirelessExtensions(), Interface::getInterfaceName(), list, and Interface::setHardwareName().

void WLANModule::possibleNewInterfaces QMap< QString, QString > &   )  [inline, virtual]
 

Adds possible new interfaces to the list (Example: usb(ppp), ir(ppp), modem ppp) Both strings need to be translated. The first string is a Shortcut like PPP and the second argument is a description.

list.insert(

Parameters:
list A reference to the list of supported additionns.

Implements Module.

Definition at line 24 of file wlanmodule.h.

void WLANModule::receive const QCString ,
const QByteArray
[virtual]
 

get dcop calls

Implements Module.

Definition at line 125 of file wlanmodule.cpp.

References QDataStream::atEnd(), configure(), QValueList< T >::count(), getInfo(), i, IO_ReadOnly, list, odebug, oendl, Interface::refresh(), Interface::restart(), QPEApplication::showWidget(), QStringList::split(), Interface::start(), Interface::stop(), stream, and wlanconfigWiget.

bool WLANModule::remove Interface i  )  [virtual]
 

Attempts to remove the interface, doesn't delete i

Returns:
bool true if successful, false otherwise.

Implements Module.

Definition at line 120 of file wlanmodule.cpp.

void WLANModule::setProfile const QString newProfile  )  [virtual]
 

Change the current profile

Implements Module.

Definition at line 45 of file wlanmodule.cpp.

References profile.

virtual const QString WLANModule::type  )  [inline, virtual]
 

The type of the plugin and the name of the qcop call

Implements Module.

Definition at line 18 of file wlanmodule.h.

void WLANModule::updateInterface Interface i  )  [signal]
 

Emit this Signal once you change the Interface you're operating on

Parameters:
i The Interface

Reimplemented from Module.


Member Data Documentation

QList<Interface> WLANModule::list [private]
 

Definition at line 33 of file wlanmodule.h.

Referenced by getInterfaces(), isOwner(), receive(), and ~WLANModule().

QString WLANModule::profile [private]
 

Definition at line 34 of file wlanmodule.h.

Referenced by configure(), and setProfile().

WLANImp* WLANModule::wlanconfigWiget [private]
 

Definition at line 32 of file wlanmodule.h.

Referenced by receive().


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