Diffstat (limited to 'noncore/settings/networksettings2/wlan/wlan_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/wlan/wlan_NN.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/wlan/wlan_NN.cpp b/noncore/settings/networksettings2/wlan/wlan_NN.cpp new file mode 100644 index 0000000..5a26e41 --- a/dev/null +++ b/noncore/settings/networksettings2/wlan/wlan_NN.cpp | |||
@@ -0,0 +1,60 @@ | |||
1 | #include "wlan_NN.h" | ||
2 | #include "wlan_NNI.h" | ||
3 | |||
4 | static const char * WLanNeeds[] = | ||
5 | { 0 | ||
6 | }; | ||
7 | |||
8 | /** | ||
9 | * Constructor, find all of the possible interfaces | ||
10 | */ | ||
11 | WLanNetNode::WLanNetNode() : ANetNode() { | ||
12 | } | ||
13 | |||
14 | /** | ||
15 | * Delete any interfaces that we own. | ||
16 | */ | ||
17 | WLanNetNode::~WLanNetNode(){ | ||
18 | } | ||
19 | |||
20 | const QString WLanNetNode::nodeDescription(){ | ||
21 | return tr("\ | ||
22 | <p>Configure Wi/Fi or WLan network cards.</p>\ | ||
23 | <p>Defines Wireless options for those cards</p>\ | ||
24 | " | ||
25 | ); | ||
26 | } | ||
27 | |||
28 | ANetNodeInstance * WLanNetNode::createInstance( void ) { | ||
29 | return new AWLan( this ); | ||
30 | } | ||
31 | |||
32 | const char ** WLanNetNode::needs( void ) { | ||
33 | return WLanNeeds; | ||
34 | } | ||
35 | |||
36 | const char * WLanNetNode::provides( void ) { | ||
37 | return "device"; | ||
38 | } | ||
39 | |||
40 | bool WLanNetNode::generateProperFilesFor( | ||
41 | ANetNodeInstance * ) { | ||
42 | return 1; | ||
43 | } | ||
44 | |||
45 | bool WLanNetNode::hasDataFor( const QString & ) { | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | bool WLanNetNode::generateDataForCommonFile( | ||
50 | SystemFile & , | ||
51 | long, | ||
52 | ANetNodeInstance * ) { | ||
53 | return 1; | ||
54 | } | ||
55 | |||
56 | extern "C" { | ||
57 | void create_plugin( QList<ANetNode> & PNN ) { | ||
58 | PNN.append( new WLanNetNode() ); | ||
59 | } | ||
60 | } | ||