summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/module.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/module.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/module.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/networksettings/module.h b/noncore/settings/networksettings/module.h
index 92b125a..2e6272b 100644
--- a/noncore/settings/networksettings/module.h
+++ b/noncore/settings/networksettings/module.h
@@ -13,25 +13,25 @@ class Module : QObject{
13 13
14signals: 14signals:
15 void updateInterface(Interface *i); 15 void updateInterface(Interface *i);
16 16
17public: 17public:
18 Module(){}; 18 Module(){};
19 19
20 /** 20 /**
21 * The current profile has been changed and the module should do any 21 * The current profile has been changed and the module should do any
22 * neccesary changes also. 22 * neccesary changes also.
23 * @param newProfile what the profile should be changed to. 23 * @param newProfile what the profile should be changed to.
24 */ 24 */
25 virtual void setProfile(QString newProfile) = 0; 25 virtual void setProfile(const QString &newProfile) = 0;
26 26
27 /** 27 /**
28 * get the icon name for this device. 28 * get the icon name for this device.
29 * @param Interface* can be used in determining the icon. 29 * @param Interface* can be used in determining the icon.
30 * @return QString the icon name (minus .png, .gif etc) 30 * @return QString the icon name (minus .png, .gif etc)
31 */ 31 */
32 virtual QString getPixmapName(Interface *) = 0; 32 virtual QString getPixmapName(Interface *) = 0;
33 33
34 /** 34 /**
35 * Check to see if the interface i is owned by this module. 35 * Check to see if the interface i is owned by this module.
36 * @param Interface* interface to check against 36 * @param Interface* interface to check against
37 * @return bool true if i is owned by this module, false otherwise. 37 * @return bool true if i is owned by this module, false otherwise.
@@ -61,25 +61,25 @@ public:
61 61
62 /** 62 /**
63 * Adds possible new interfaces to the list (Example: usb(ppp), ir(ppp), 63 * Adds possible new interfaces to the list (Example: usb(ppp), ir(ppp),
64 * modem ppp) 64 * modem ppp)
65 */ 65 */
66 virtual void possibleNewInterfaces(QMap<QString, QString> &list) = 0; 66 virtual void possibleNewInterfaces(QMap<QString, QString> &list) = 0;
67 67
68 /** 68 /**
69 * Attempts to create a new interface from name 69 * Attempts to create a new interface from name
70 * @return Interface* NULL if it was unable to be created. 70 * @return Interface* NULL if it was unable to be created.
71 * @param name the type of interface to create 71 * @param name the type of interface to create
72 */ 72 */
73 virtual Interface *addNewInterface(QString name) = 0; 73 virtual Interface *addNewInterface(const QString &name) = 0;
74 74
75 /** 75 /**
76 * Attempts to remove the interface, doesn't delete i 76 * Attempts to remove the interface, doesn't delete i
77 * @return bool true if successfull, false otherwise. 77 * @return bool true if successfull, false otherwise.
78 */ 78 */
79 virtual bool remove(Interface* i) = 0; 79 virtual bool remove(Interface* i) = 0;
80 80
81}; 81};
82 82
83#endif 83#endif
84 84
85// module.h 85// module.h