summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/profile/profile_NN.cpp
blob: 1e6912eebc5eadc87194f949fe75e593bdeaf5e0 (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
52
53
54
55
56
57
58
#include <resources.h>
#include "profile_NN.h"
#include "profile_NNI.h"

#include "netnodeinterface.h"

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

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

    NSResources->addSystemFile(
      "interfaces", "/etc/network/interfaces", 1 );

}

/**
 * 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 ProfileProvides;
}

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

void ProfileNetNode::saveSpecificAttribute( QTextStream & ) {
}

OPIE_NS2_PLUGIN( NetNodeInterface_T<ProfileNetNode> )