summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/profile/profile_NN.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/profile/profile_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/profile/profile_NN.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/profile/profile_NN.cpp b/noncore/settings/networksettings2/profile/profile_NN.cpp
index 945b48d..b7d8aa0 100644
--- a/noncore/settings/networksettings2/profile/profile_NN.cpp
+++ b/noncore/settings/networksettings2/profile/profile_NN.cpp
@@ -1,50 +1,59 @@
1#include <resources.h>
1#include "profile_NN.h" 2#include "profile_NN.h"
2#include "profile_NNI.h" 3#include "profile_NNI.h"
3 4
4static const char * ProfileNeeds[] = 5static const char * ProfileNeeds[] =
5 { "connection", 6 { "connection",
6 0 7 0
7 }; 8 };
9static const char * ProfileProvides[] =
10 { "fullsetup",
11 0
12 };
8 13
9/** 14/**
10 * Constructor, find all of the possible interfaces 15 * Constructor, find all of the possible interfaces
11 */ 16 */
12ProfileNetNode::ProfileNetNode() : ANetNode( tr("Regular connection profile")) { 17ProfileNetNode::ProfileNetNode() : ANetNode( tr("Regular connection profile")) {
18
19 NSResources->addSystemFile(
20 "interfaces", "/etc/network/interfaces", 1 );
21
13} 22}
14 23
15/** 24/**
16 * Delete any interfaces that we own. 25 * Delete any interfaces that we own.
17 */ 26 */
18ProfileNetNode::~ProfileNetNode(){ 27ProfileNetNode::~ProfileNetNode(){
19} 28}
20 29
21const QString ProfileNetNode::nodeDescription(){ 30const QString ProfileNetNode::nodeDescription(){
22 return tr("\ 31 return tr("\
23<p>Define use of an IP connection.</p>\ 32<p>Define use of an IP connection.</p>\
24<p>Configure if and when this connection needs to be established</p>\ 33<p>Configure if and when this connection needs to be established</p>\
25" 34"
26); 35);
27} 36}
28 37
29ANetNodeInstance * ProfileNetNode::createInstance( void ) { 38ANetNodeInstance * ProfileNetNode::createInstance( void ) {
30 return new AProfile( this ); 39 return new AProfile( this );
31} 40}
32 41
33const char ** ProfileNetNode::needs( void ) { 42const char ** ProfileNetNode::needs( void ) {
34 return ProfileNeeds; 43 return ProfileNeeds;
35} 44}
36 45
37const char * ProfileNetNode::provides( void ) { 46const char ** ProfileNetNode::provides( void ) {
38 return "fullsetup"; 47 return ProfileProvides;
39} 48}
40 49
41void ProfileNetNode::setSpecificAttribute( QString & , QString & ) { 50void ProfileNetNode::setSpecificAttribute( QString & , QString & ) {
42} 51}
43 52
44void ProfileNetNode::saveSpecificAttribute( QTextStream & ) { 53void ProfileNetNode::saveSpecificAttribute( QTextStream & ) {
45} 54}
46 55
47extern "C" { 56extern "C" {
48void create_plugin( QList<ANetNode> & PNN ) { 57void create_plugin( QList<ANetNode> & PNN ) {
49 PNN.append( new ProfileNetNode() ); 58 PNN.append( new ProfileNetNode() );
50} 59}