#include </home/clem/local/src/opie/noncore/settings/networksettings/interfaces/module.h>
Inheritance diagram for Module:


Signals | |
| void | updateInterface (Interface *i) |
Public Member Functions | |
| Module () | |
| virtual const QString | type ()=0 |
| virtual void | setProfile (const QString &newProfile)=0 |
| virtual QString | getPixmapName (Interface *)=0 |
| virtual bool | isOwner (Interface *) |
| virtual QWidget * | configure (Interface *) |
| virtual QWidget * | information (Interface *) |
| virtual QList< Interface > | getInterfaces ()=0 |
| virtual void | possibleNewInterfaces (QMap< QString, QString > &list)=0 |
| virtual Interface * | addNewInterface (const QString &name)=0 |
| virtual bool | remove (Interface *i)=0 |
| virtual void | receive (const QCString &msg, const QByteArray &arg)=0 |
| QStringList | handledInterfaceNames () const |
Protected Member Functions | |
| void | setHandledInterfaceNames (const QStringList &in) |
Private Attributes | |
| QStringList | m_inter |
This is the way to extend networksettings with extra functionality.
Networksettings in the 1.0 release does not use QCOM for activation. You need to provide the following function yourself.
A module needs to provide Name, Images, and methods for claiming interfaces. For example you can claim physicla interfaces like wlan0, ppp0 or virtual like a VPN connection and hide the real ppp device or ethernet device behind your VPN plugin.
During start up. The main application searches for network devices and then looks for an owner under the plugins for them. For example the WLAN Plugin looks if there is a WLAN Extension on that interface and then claims it by returning true from isOwner()
extern "C" { void* create_plugin() { return new WLANModule(); } };
Definition at line 48 of file module.h.
|
|
|
|
|
Attempts to create a new interface from name you gave possibleNewInterfaces()
Implemented in VirtualModule, PPPModule, and WLANModule. |
|
|
Create and return the Configure Module
Reimplemented in VirtualModule, PPPModule, and WLANModule. Definition at line 109 of file module.h. References NULL. |
|
|
Get all active (up or down) interfaces managed by this module. At the end of initialisation you will be asked to return your interfaces Return all of your interfaces even the ones you claimed by isOnwer. Here you can also return your 'virtual' Interface Objects
Implemented in VirtualModule, PPPModule, and WLANModule. |
|
|
get the icon name for this device.
Implemented in VirtualModule, PPPModule, and WLANModule. |
|
|
Definition at line 172 of file module.h. References m_inter. Referenced by MainWindowImp::loadPlugin(), and PPPModule::PPPModule(). |
|
|
Create, and return the Information Module. An default Implementation is InterfaceInformationImp
Reimplemented in VirtualModule, PPPModule, and WLANModule. Definition at line 122 of file module.h. References NULL. |
|
|
Check to see if the interface i is owned by this module. See if you can handle it. And if you can claim ownership by returning true. For physical devices you will be asked if you want to own the device. But you can also create new
Reimplemented in VirtualModule, DefaultModule, PPPModule, and WLANModule. |
|
|
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.
Implemented in VirtualModule, PPPModule, and WLANModule. |
|
||||||||||||
|
get dcop calls Implemented in VirtualModule, PPPModule, and WLANModule. |
|
|
Attempts to remove the interface, doesn't delete i
Implemented in VirtualModule, PPPModule, and WLANModule. |
|
|
set which interfaceNames should not be shown cause they're handled internally of this module.. An already running ppp link or a tunnel... VPN an such Definition at line 179 of file module.h. References m_inter. Referenced by PPPModule::PPPModule(). |
|
|
The current profile has been changed and the module should do any neccesary changes also. As of Opie1.0 profiles are disabled.
Implemented in VirtualModule, PPPModule, and WLANModule. |
|
|
The type of the plugin and the name of the qcop call Implemented in VirtualModule, PPPModule, and WLANModule. |
|
|
Emit this Signal once you change the Interface you're operating on
Reimplemented in VirtualModule, PPPModule, and WLANModule. |
|
|
Definition at line 182 of file module.h. Referenced by handledInterfaceNames(), and setHandledInterfaceNames(). |
1.4.2