summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/wlan/wlanmodule.cpp
Unidiff
Diffstat (limited to 'noncore/net/networksetup/wlan/wlanmodule.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/wlan/wlanmodule.cpp85
1 files changed, 85 insertions, 0 deletions
diff --git a/noncore/net/networksetup/wlan/wlanmodule.cpp b/noncore/net/networksetup/wlan/wlanmodule.cpp
new file mode 100644
index 0000000..632f7e4
--- a/dev/null
+++ b/noncore/net/networksetup/wlan/wlanmodule.cpp
@@ -0,0 +1,85 @@
1#include "wlanmodule.h"
2#include <qpe/config.h>
3#include "wlanimp.h"
4
5/**
6 * Constructor, find all of the possible interfaces
7 */
8WLANModule::WLANModule() : Module() {
9 // get output from iwconfig
10}
11
12/**
13 * get the icon name for this device.
14 * @param Interface* can be used in determining the icon.
15 * @return QString the icon name (minus .png, .gif etc)
16 */
17QString WLANModule::getPixmapName(Interface* ){
18 return "wlan";
19}
20
21/**
22 * Check to see if the interface i is owned by this module.
23 * @return bool true if i is owned by this module, false otherwise.
24 */
25bool WLANModule::isOwner(Interface *i){
26 if(i->getInterfaceName() == "eth0")
27 return true;
28 return false;
29}
30
31/**
32 * Create, set tabWiget and return the WLANConfigure Module
33 * @param tabWidget a pointer to the tab widget that this configure has.
34 * @return QWidget* pointer to the tab widget in this modules configure.
35 */
36QWidget *WLANModule::configure(QTabWidget **tabWidget){
37 Config cfg("wireless");
38 WLANImp *wlanconfig = new WLANImp(cfg);
39 (*tabWidget) = wlanconfig->tabWidget;
40 return wlanconfig;
41}
42
43/**
44 * Create, set tabWiget and return the Information Module
45 * @param tabWidget a pointer to the tab widget that this information has.
46 * @return QWidget* pointer to the tab widget in this modules info.
47 */
48QWidget *WLANModule::information(QTabWidget **tabWidget){
49 return NULL;
50}
51
52/**
53 *
54 */
55QList<Interface> WLANModule::getInterfaces(){
56 return list
57}
58
59/**
60 * Return a list of possible new interfaces
61 */
62QMap<QString, QString> WLANModule::possibleNewInterfaces(){
63 //return list;
64}
65
66/**
67 * Attempt to add a new interface as defined by name
68 * @param name the name of the type of interface that should be created given
69 * by possibleNewInterfaces();
70 * @return Interface* NULL if it was unable to be created.
71 */
72Interface *WLANModule::addNewInterface(QString name){
73 return NULL;
74}
75
76/**
77 * Attempts to remove the interface, doesn't delete i
78 * @return bool true if successfull, false otherwise.
79 */
80bool WLANModule::remove(Interface* i){
81 return false;
82}
83
84// wlanmodule.cpp
85