author | benmeyer <benmeyer> | 2002-10-02 17:22:50 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-02 17:22:50 (UTC) |
commit | 527e77d8244fb25d0bab39857eebbdfbcbfb807a (patch) (side-by-side diff) | |
tree | f3ec7cee3573ef83d8d86f859c7c3de3a8b06b9f /noncore/net/networksetup/wlan/wlanmodule.cpp | |
parent | 6e50141595ec2159d384c2cb9aaee4758eb720ea (diff) | |
download | opie-527e77d8244fb25d0bab39857eebbdfbcbfb807a.zip opie-527e77d8244fb25d0bab39857eebbdfbcbfb807a.tar.gz opie-527e77d8244fb25d0bab39857eebbdfbcbfb807a.tar.bz2 |
Add Connection function more filled in
Diffstat (limited to 'noncore/net/networksetup/wlan/wlanmodule.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/wlan/wlanmodule.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/noncore/net/networksetup/wlan/wlanmodule.cpp b/noncore/net/networksetup/wlan/wlanmodule.cpp index 632f7e4..70b1f7a 100644 --- a/noncore/net/networksetup/wlan/wlanmodule.cpp +++ b/noncore/net/networksetup/wlan/wlanmodule.cpp @@ -17,12 +17,13 @@ WLANModule::WLANModule() : Module() { QString WLANModule::getPixmapName(Interface* ){ return "wlan"; } /** * 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. */ bool WLANModule::isOwner(Interface *i){ if(i->getInterfaceName() == "eth0") return true; return false; @@ -47,39 +48,37 @@ QWidget *WLANModule::configure(QTabWidget **tabWidget){ */ QWidget *WLANModule::information(QTabWidget **tabWidget){ 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() + */ QList<Interface> WLANModule::getInterfaces(){ - return list -} - -/** - * Return a list of possible new interfaces - */ -QMap<QString, QString> WLANModule::possibleNewInterfaces(){ - //return list; + return list; } /** * Attempt to add a new interface as defined by name * @param name the name of the type of interface that should be created given * by possibleNewInterfaces(); * @return Interface* NULL if it was unable to be created. */ -Interface *WLANModule::addNewInterface(QString name){ +Interface *WLANModule::addNewInterface(QString ){ + // We can't add a 802.11 interface, either the hardware will be there + // or it wont. return NULL; } /** * Attempts to remove the interface, doesn't delete i * @return bool true if successfull, false otherwise. */ -bool WLANModule::remove(Interface* i){ +bool WLANModule::remove(Interface*){ + // Can't remove a hardware device, you can stop it though. return false; } // wlanmodule.cpp |