Diffstat (limited to 'noncore/net/networksetup/module.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/module.h | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/noncore/net/networksetup/module.h b/noncore/net/networksetup/module.h deleted file mode 100644 index 2e6272b..0000000 --- a/noncore/net/networksetup/module.h +++ b/dev/null @@ -1,86 +0,0 @@ -#ifndef NETCONF_MODULE_H -#define NETCONF_MODULE_H - -#include <qobject.h> -#include <qlist.h> -#include <qmap.h> -#include "interface.h" - -class QWidget; -class QTabWidget; - -class Module : QObject{ - -signals: - void updateInterface(Interface *i); - -public: - Module(){}; - - /** - * The current profile has been changed and the module should do any - * neccesary changes also. - * @param newProfile what the profile should be changed to. - */ - virtual void setProfile(const QString &newProfile) = 0; - - /** - * get the icon name for this device. - * @param Interface* can be used in determining the icon. - * @return QString the icon name (minus .png, .gif etc) - */ - virtual QString getPixmapName(Interface *) = 0; - - /** - * Check to see if the interface i is owned by this module. - * @param Interface* interface to check against - * @return bool true if i is owned by this module, false otherwise. - */ - virtual bool isOwner(Interface *){ return false; }; - - /** - * Create and return the WLANConfigure Module - * @param Interface *i the interface to configure. - * @return QWidget* pointer to this modules configure. - */ - virtual QWidget *configure(Interface *){ return NULL; } ; - - /** - * Create, and return the Information Module - * @param Interface *i the interface to get info on. - * @return QWidget* pointer to this modules info. - */ - virtual QWidget *information(Interface *){ return NULL; }; - - /** - * Get all active (up or down) interfaces - * @return QList<Interface> A list of interfaces that exsist that havn't - * been called by isOwner() - */ - virtual QList<Interface> getInterfaces() = 0; - - /** - * Adds possible new interfaces to the list (Example: usb(ppp), ir(ppp), - * modem ppp) - */ - virtual void possibleNewInterfaces(QMap<QString, QString> &list) = 0; - - /** - * Attempts to create a new interface from name - * @return Interface* NULL if it was unable to be created. - * @param name the type of interface to create - */ - virtual Interface *addNewInterface(const QString &name) = 0; - - /** - * Attempts to remove the interface, doesn't delete i - * @return bool true if successfull, false otherwise. - */ - virtual bool remove(Interface* i) = 0; - -}; - -#endif - -// module.h - |