summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/module.h
authorbenmeyer <benmeyer>2002-11-08 16:16:11 (UTC)
committer benmeyer <benmeyer>2002-11-08 16:16:11 (UTC)
commite0db2259cc26cab12c6f1131b82dd867c454a3ff (patch) (side-by-side diff)
treee251396e5e96839aed5bf6a930dff37fefe5acc0 /noncore/net/networksetup/module.h
parentd8ac5b68b504536136347547816992b1cf605cd4 (diff)
downloadopie-e0db2259cc26cab12c6f1131b82dd867c454a3ff.zip
opie-e0db2259cc26cab12c6f1131b82dd867c454a3ff.tar.gz
opie-e0db2259cc26cab12c6f1131b82dd867c454a3ff.tar.bz2
Code Optimizations
Diffstat (limited to 'noncore/net/networksetup/module.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/module.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/networksetup/module.h b/noncore/net/networksetup/module.h
index 92b125a..2e6272b 100644
--- a/noncore/net/networksetup/module.h
+++ b/noncore/net/networksetup/module.h
@@ -13,25 +13,25 @@ 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(QString newProfile) = 0;
+ 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.
@@ -61,25 +61,25 @@ public:
/**
* 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(QString name) = 0;
+ 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