summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/profile/profile_NN.cpp
blob: 945b48d90bd17709bd2c9fabad91041a84dd857e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "profile_NN.h"
#include "profile_NNI.h"

static const char * ProfileNeeds[] = 
    { "connection", 
      0
    };

/**
 * Constructor, find all of the possible interfaces
 */
ProfileNetNode::ProfileNetNode() : ANetNode( tr("Regular connection profile")) {
}

/**
 * Delete any interfaces that we own.
 */
ProfileNetNode::~ProfileNetNode(){
}

const QString ProfileNetNode::nodeDescription(){
      return tr("\
<p>Define use of an IP connection.</p>\
<p>Configure if and when this connection needs to be established</p>\
"
);
}

ANetNodeInstance * ProfileNetNode::createInstance( void ) {
      return new AProfile( this );
}

const char ** ProfileNetNode::needs( void ) {
      return ProfileNeeds;
}

const char * ProfileNetNode::provides( void ) {
      return "fullsetup";
}

void ProfileNetNode::setSpecificAttribute( QString & , QString & ) {
}

void ProfileNetNode::saveSpecificAttribute( QTextStream & ) {
}

extern "C" {
void create_plugin( QList<ANetNode> & PNN ) {
      PNN.append( new ProfileNetNode() );
}
}