Diffstat (limited to 'noncore/net/networksetup/module.h') (more/less context) (show 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 @@ | |||
1 | #ifndef NETCONF_MODULE_H | ||
2 | #define NETCONF_MODULE_H | ||
3 | |||
4 | #include <qobject.h> | ||
5 | #include <qlist.h> | ||
6 | #include <qmap.h> | ||
7 | #include "interface.h" | ||
8 | |||
9 | class QWidget; | ||
10 | class QTabWidget; | ||
11 | |||
12 | class Module : QObject{ | ||
13 | |||
14 | signals: | ||
15 | void updateInterface(Interface *i); | ||
16 | |||
17 | public: | ||
18 | Module(){}; | ||
19 | |||
20 | /** | ||
21 | * The current profile has been changed and the module should do any | ||
22 | * neccesary changes also. | ||
23 | * @param newProfile what the profile should be changed to. | ||
24 | */ | ||
25 | virtual void setProfile(const QString &newProfile) = 0; | ||
26 | |||
27 | /** | ||
28 | * get the icon name for this device. | ||
29 | * @param Interface* can be used in determining the icon. | ||
30 | * @return QString the icon name (minus .png, .gif etc) | ||
31 | */ | ||
32 | virtual QString getPixmapName(Interface *) = 0; | ||
33 | |||
34 | /** | ||
35 | * Check to see if the interface i is owned by this module. | ||
36 | * @param Interface* interface to check against | ||
37 | * @return bool true if i is owned by this module, false otherwise. | ||
38 | */ | ||
39 | virtual bool isOwner(Interface *){ return false; }; | ||
40 | |||
41 | /** | ||
42 | * Create and return the WLANConfigure Module | ||
43 | * @param Interface *i the interface to configure. | ||
44 | * @return QWidget* pointer to this modules configure. | ||
45 | */ | ||
46 | virtual QWidget *configure(Interface *){ return NULL; } ; | ||
47 | |||
48 | /** | ||
49 | * Create, and return the Information Module | ||
50 | * @param Interface *i the interface to get info on. | ||
51 | * @return QWidget* pointer to this modules info. | ||
52 | */ | ||
53 | virtual QWidget *information(Interface *){ return NULL; }; | ||
54 | |||
55 | /** | ||
56 | * Get all active (up or down) interfaces | ||
57 | * @return QList<Interface> A list of interfaces that exsist that havn't | ||
58 | * been called by isOwner() | ||
59 | */ | ||
60 | virtual QList<Interface> getInterfaces() = 0; | ||
61 | |||
62 | /** | ||
63 | * Adds possible new interfaces to the list (Example: usb(ppp), ir(ppp), | ||
64 | * modem ppp) | ||
65 | */ | ||
66 | virtual void possibleNewInterfaces(QMap<QString, QString> &list) = 0; | ||
67 | |||
68 | /** | ||
69 | * Attempts to create a new interface from name | ||
70 | * @return Interface* NULL if it was unable to be created. | ||
71 | * @param name the type of interface to create | ||
72 | */ | ||
73 | virtual Interface *addNewInterface(const QString &name) = 0; | ||
74 | |||
75 | /** | ||
76 | * Attempts to remove the interface, doesn't delete i | ||
77 | * @return bool true if successfull, false otherwise. | ||
78 | */ | ||
79 | virtual bool remove(Interface* i) = 0; | ||
80 | |||
81 | }; | ||
82 | |||
83 | #endif | ||
84 | |||
85 | // module.h | ||
86 | |||