From 527e77d8244fb25d0bab39857eebbdfbcbfb807a Mon Sep 17 00:00:00 2001 From: benmeyer Date: Wed, 02 Oct 2002 17:22:50 +0000 Subject: Add Connection function more filled in --- (limited to 'noncore/net/networksetup/wlan') diff --git a/noncore/net/networksetup/wlan/wlan.ui b/noncore/net/networksetup/wlan/wlan.ui index dcacbe8..9f33559 100644 --- a/noncore/net/networksetup/wlan/wlan.ui +++ b/noncore/net/networksetup/wlan/wlan.ui @@ -11,7 +11,7 @@ 0 0 - 254 + 250 286 @@ -53,7 +53,7 @@ title - Config + WLAN General 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 @@ -20,6 +20,7 @@ QString WLANModule::getPixmapName(Interface* ){ /** * 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){ @@ -50,17 +51,12 @@ QWidget *WLANModule::information(QTabWidget **tabWidget){ } /** - * - */ + * Get all active (up or down) interfaces + * @return QList A list of interfaces that exsist that havn't + * been called by isOwner() + */ QList WLANModule::getInterfaces(){ - return list -} - -/** - * Return a list of possible new interfaces - */ -QMap WLANModule::possibleNewInterfaces(){ - //return list; + return list; } /** @@ -69,7 +65,9 @@ QMap WLANModule::possibleNewInterfaces(){ * 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; } @@ -77,7 +75,8 @@ Interface *WLANModule::addNewInterface(QString name){ * 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; } diff --git a/noncore/net/networksetup/wlan/wlanmodule.h b/noncore/net/networksetup/wlan/wlanmodule.h index 1fbf6a9..7ebe129 100644 --- a/noncore/net/networksetup/wlan/wlanmodule.h +++ b/noncore/net/networksetup/wlan/wlanmodule.h @@ -15,7 +15,7 @@ public: virtual QWidget *configure(QTabWidget **tabWidget); virtual QWidget *information(QTabWidget **tabWidget); virtual QList getInterfaces(); - virtual QMap possibleNewInterfaces(); + virtual void possibleNewInterfaces(QMap &list){}; virtual Interface *addNewInterface(QString name); virtual bool remove(Interface* i); virtual QString getPixmapName(Interface* i); -- cgit v0.9.0.2