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

PPPModule Class Reference

#include </home/clem/local/src/opie/noncore/settings/networksettings/ppp/pppmodule.h>

Inheritance diagram for PPPModule:

Inheritance graph
[legend]
Collaboration diagram for PPPModule:

Collaboration graph
[legend]
List of all members.

Signals

void updateInterface (Interface *i)

Public Member Functions

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

Private Attributes

QList< Interfacelist
QString profile

Constructor & Destructor Documentation

PPPModule::PPPModule  ) 
 

Constructor, find all of the possible interfaces We also need to restore the state.. it could be that an interface was up while closing the application we need to be able to shut it down...

Definition at line 57 of file pppmodule.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::contains(), QMap< Key, T >::end(), PPPData::getConfiguredInterfaces(), Module::handledInterfaceNames(), ifaces, list, odebug, oendl, Interface::refresh(), Module::setHandledInterfaceNames(), Interface::setHardwareName(), and Interface::setStatus().

PPPModule::~PPPModule  ) 
 

Delete any interfaces that we own.

Definition at line 92 of file pppmodule.cpp.

References Interface::getHardwareName(), Interface::getInterfaceName(), Interface::getStatus(), i, ifaces, QMap< Key, T >::insert(), list, odebug, oendl, InterfacePPP::pppDev(), InterfacePPP::pppPID(), and PPPData::setConfiguredInterfaces().


Member Function Documentation

Interface * PPPModule::addNewInterface const QString newInterface  )  [virtual]
 

Attempt to add a new interface as defined by name

Parameters:
newInterface 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 184 of file pppmodule.cpp.

References QPEApplication::execDialog(), list, NULL, and Interface::setModuleOwner().

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

Create, and return the WLANConfigure Module

Returns:
QWidget* pointer to this modules configure.

Reimplemented from Module.

Definition at line 145 of file pppmodule.cpp.

References odebug, oendl, Qt::WDestructiveClose, and Qt::WStyle_ContextHelp.

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

Get all active (up or down) interfaces

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

Implements Module.

Definition at line 171 of file pppmodule.cpp.

References list, odebug, and oendl.

QString PPPModule::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 126 of file pppmodule.cpp.

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

Create, and return the Information Module

Returns:
QWidget* pointer to this modules info.

Reimplemented from Module.

Definition at line 158 of file pppmodule.cpp.

bool PPPModule::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 136 of file pppmodule.cpp.

References list.

void PPPModule::possibleNewInterfaces QMap< QString, QString > &   )  [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 217 of file pppmodule.cpp.

References tr.

virtual void PPPModule::receive const QCString ,
const QByteArray
[inline, virtual]
 

get dcop calls

Implements Module.

Definition at line 25 of file pppmodule.h.

bool PPPModule::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 212 of file pppmodule.cpp.

References list.

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

Change the current profile

Implements Module.

Definition at line 116 of file pppmodule.cpp.

References profile.

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

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

Implements Module.

Definition at line 15 of file pppmodule.h.

void PPPModule::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> PPPModule::list [private]
 

Definition at line 25 of file pppmodule.h.

Referenced by addNewInterface(), getInterfaces(), isOwner(), PPPModule(), remove(), and ~PPPModule().

QString PPPModule::profile [private]
 

Definition at line 29 of file pppmodule.h.

Referenced by setProfile().


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