From 5334b639c9f97793bcae4f50f7b47c7a2ada4e2f Mon Sep 17 00:00:00 2001 From: wimpie Date: Fri, 02 Apr 2004 18:29:49 +0000 Subject: First import of NS2 app --- (limited to 'noncore/settings/networksettings2/wlan/wlan_NN.cpp') 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 @@ +#include "wlan_NN.h" +#include "wlan_NNI.h" + +static const char * WLanNeeds[] = + { 0 + }; + +/** + * Constructor, find all of the possible interfaces + */ +WLanNetNode::WLanNetNode() : ANetNode() { +} + +/** + * Delete any interfaces that we own. + */ +WLanNetNode::~WLanNetNode(){ +} + +const QString WLanNetNode::nodeDescription(){ + return tr("\ +

Configure Wi/Fi or WLan network cards.

\ +

Defines Wireless options for those cards

\ +" +); +} + +ANetNodeInstance * WLanNetNode::createInstance( void ) { + return new AWLan( this ); +} + +const char ** WLanNetNode::needs( void ) { + return WLanNeeds; +} + +const char * WLanNetNode::provides( void ) { + return "device"; +} + +bool WLanNetNode::generateProperFilesFor( + ANetNodeInstance * ) { + return 1; +} + +bool WLanNetNode::hasDataFor( const QString & ) { + return 0; +} + +bool WLanNetNode::generateDataForCommonFile( + SystemFile & , + long, + ANetNodeInstance * ) { + return 1; +} + +extern "C" { +void create_plugin( QList & PNN ) { + PNN.append( new WLanNetNode() ); +} +} -- cgit v0.9.0.2