summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/wlan/wlan_NN.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/wlan/wlan_NN.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/wlan/wlan_NN.cpp60
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
4static const char * WLanNeeds[] =
5 { 0
6 };
7
8/**
9 * Constructor, find all of the possible interfaces
10 */
11WLanNetNode::WLanNetNode() : ANetNode() {
12}
13
14/**
15 * Delete any interfaces that we own.
16 */
17WLanNetNode::~WLanNetNode(){
18}
19
20const 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
28ANetNodeInstance * WLanNetNode::createInstance( void ) {
29 return new AWLan( this );
30}
31
32const char ** WLanNetNode::needs( void ) {
33 return WLanNeeds;
34}
35
36const char * WLanNetNode::provides( void ) {
37 return "device";
38}
39
40bool WLanNetNode::generateProperFilesFor(
41 ANetNodeInstance * ) {
42 return 1;
43}
44
45bool WLanNetNode::hasDataFor( const QString & ) {
46 return 0;
47}
48
49bool WLanNetNode::generateDataForCommonFile(
50 SystemFile & ,
51 long,
52 ANetNodeInstance * ) {
53 return 1;
54}
55
56extern "C" {
57void create_plugin( QList<ANetNode> & PNN ) {
58 PNN.append( new WLanNetNode() );
59}
60}