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/profile/profile_NN.cpp') diff --git a/noncore/settings/networksettings2/profile/profile_NN.cpp b/noncore/settings/networksettings2/profile/profile_NN.cpp new file mode 100644 index 0000000..c39b86f --- a/dev/null +++ b/noncore/settings/networksettings2/profile/profile_NN.cpp @@ -0,0 +1,61 @@ +#include "profile_NN.h" +#include "profile_NNI.h" + +static const char * ProfileNeeds[] = + { "connection", + 0 + }; + +/** + * Constructor, find all of the possible interfaces + */ +ProfileNetNode::ProfileNetNode() : ANetNode() { +} + +/** + * Delete any interfaces that we own. + */ +ProfileNetNode::~ProfileNetNode(){ +} + +const QString ProfileNetNode::nodeDescription(){ + return tr("\ +

Define use of an IP connection.

\ +

Configure if and when this connection needs to be established

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