Module Class Reference
The basis of all plugins. More...
#include <module.h>
Inheritance diagram for Module:


Signals | |
| void | updateInterface (Interface *i) |
| Emit this Signal once you change the Interface you're operating on. | |
Public Member Functions | |
| virtual const QString | type ()=0 |
| The type of the plugin and the name of the qcop call. | |
| virtual void | setProfile (const QString &newProfile)=0 |
| The current profile has been changed and the module should do any neccesary changes also. | |
| virtual QString | getPixmapName (Interface *)=0 |
| get the icon name for this device. | |
| virtual bool | isOwner (Interface *) |
| Check to see if the interface i is owned by this module. | |
| virtual QWidget * | configure (Interface *) |
| Create and return the Configure Module. | |
| virtual QWidget * | information (Interface *) |
| Create, and return the Information Module. | |
| virtual QList< Interface > | getInterfaces ()=0 |
| Get all active (up or down) interfaces managed by this module. | |
| virtual void | possibleNewInterfaces (QMap< QString, QString > &list)=0 |
| Adds possible new interfaces to the list (Example: usb(ppp), ir(ppp), modem ppp) Both strings need to be translated. | |
| virtual Interface * | addNewInterface (const QString &name)=0 |
| Attempts to create a new interface from name you gave possibleNewInterfaces(). | |
| virtual bool | remove (Interface *i)=0 |
| Attempts to remove the interface, doesn't delete i. | |
| virtual void | receive (const QCString &msg, const QByteArray &arg)=0 |
| get dcop calls | |
| QStringList | handledInterfaceNames () const |
Protected Member Functions | |
| void | setHandledInterfaceNames (const QStringList &in) |
| set which interfaceNames should not be shown cause they're handled internally of this module.. | |
Detailed Description
The basis of all plugins.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(); } };
- See also:
- isOwner(Interface*)
Definition at line 48 of file module.h.
Member Function Documentation
|
|
Emit this Signal once you change the Interface you're operating on.
|
|
|
The type of the plugin and the name of the qcop call.
|
|
|
The current profile has been changed and the module should do any neccesary changes also. As of Opie1.0 profiles are disabled.
|
|
|
get the icon name for this device.
|
|
|
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
|
|
|
Create and return the Configure Module.
|
|
|
Create, and return the Information Module. An default Implementation is InterfaceInformationImp
|
|
|
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
|
|
|
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.
|
|
|
Attempts to create a new interface from name you gave possibleNewInterfaces().
|
|
|
Attempts to remove the interface, doesn't delete i.
|
|
||||||||||||
|
get dcop calls
|
|
|
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 |
The documentation for this class was generated from the following file:
