Diffstat (limited to 'noncore/settings/networksettings/module.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/module.h | 55 |
1 files changed, 50 insertions, 5 deletions
diff --git a/noncore/settings/networksettings/module.h b/noncore/settings/networksettings/module.h index c1e9488..0c81928 100644 --- a/noncore/settings/networksettings/module.h +++ b/noncore/settings/networksettings/module.h | |||
@@ -11,24 +11,69 @@ class QTabWidget; | |||
11 | 11 | ||
12 | class Module : QObject{ | 12 | class Module : QObject{ |
13 | 13 | ||
14 | signals: | 14 | signals: |
15 | void updateInterface(Interface *i); | 15 | void updateInterface(Interface *i); |
16 | 16 | ||
17 | public: | 17 | public: |
18 | Module(){}; | 18 | Module(){}; |
19 | 19 | ||
20 | /** | ||
21 | * get the icon name for this device. | ||
22 | * @param Interface* can be used in determining the icon. | ||
23 | * @return QString the icon name (minus .png, .gif etc) | ||
24 | */ | ||
25 | virtual QString getPixmapName(Interface* i) = 0; | ||
26 | |||
27 | /** | ||
28 | * Check to see if the interface i is owned by this module. | ||
29 | * @param Interface* interface to check against | ||
30 | * @return bool true if i is owned by this module, false otherwise. | ||
31 | */ | ||
20 | virtual bool isOwner(Interface *){ return false; }; | 32 | virtual bool isOwner(Interface *){ return false; }; |
21 | virtual QWidget *configure(QTabWidget **tabWidget){ return NULL; } ; | 33 | |
22 | virtual QWidget *information(QTabWidget **tabWidget){ return NULL; }; | 34 | /** |
35 | * Create, set tabWiget and return the WLANConfigure Module | ||
36 | * @param tabWidget a pointer to the tab widget that this configure has. | ||
37 | * @return QWidget* pointer to the tab widget in this modules configure. | ||
38 | */ | ||
39 | virtual QWidget *configure(QTabWidget **){ return NULL; } ; | ||
40 | |||
41 | /** | ||
42 | * Create, set tabWiget and return the Information Module | ||
43 | * @param tabWidget a pointer to the tab widget that this information has. | ||
44 | * @return QWidget* pointer to the tab widget in this modules info. | ||
45 | */ | ||
46 | virtual QWidget *information(QTabWidget **){ return NULL; }; | ||
47 | |||
48 | /** | ||
49 | * Get all active (up or down) interfaces | ||
50 | * @return QList<Interface> A list of interfaces that exsist that havn't | ||
51 | * been called by isOwner() | ||
52 | */ | ||
23 | virtual QList<Interface> getInterfaces() = 0; | 53 | virtual QList<Interface> getInterfaces() = 0; |
24 | virtual QMap<QString, QString> possibleNewInterfaces() = 0; | 54 | |
55 | /** | ||
56 | * Adds possible new interfaces to the list (Example: usb(ppp), ir(ppp), | ||
57 | * modem ppp) | ||
58 | */ | ||
59 | virtual void possibleNewInterfaces(QMap<QString, QString> &list) = 0; | ||
60 | |||
61 | /** | ||
62 | * Attempts to create a new interface from name | ||
63 | * @return Interface* NULL if it was unable to be created. | ||
64 | * @param name the type of interface to create | ||
65 | */ | ||
25 | virtual Interface *addNewInterface(QString name) = 0; | 66 | virtual Interface *addNewInterface(QString name) = 0; |
67 | |||
68 | /** | ||
69 | * Attempts to remove the interface, doesn't delete i | ||
70 | * @return bool true if successfull, false otherwise. | ||
71 | */ | ||
26 | virtual bool remove(Interface* i) = 0; | 72 | virtual bool remove(Interface* i) = 0; |
27 | virtual QString getPixmapName(Interface* i) = 0; | ||
28 | 73 | ||
29 | }; | 74 | }; |
30 | 75 | ||
31 | #endif | 76 | #endif |
32 | 77 | ||
33 | // module.h | 78 | // module.h |
34 | 79 | ||