summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/cable/cable_NN.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/cable/cable_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/cable/cable_NN.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/cable/cable_NN.cpp b/noncore/settings/networksettings2/cable/cable_NN.cpp
new file mode 100644
index 0000000..756903e
--- a/dev/null
+++ b/noncore/settings/networksettings2/cable/cable_NN.cpp
@@ -0,0 +1,59 @@
1#include "cable_NN.h"
2#include "cable_NNI.h"
3
4static const char * CableNeeds[] =
5 { 0
6 };
7
8/**
9 * Constructor, find all of the possible interfaces
10 */
11CableNetNode::CableNetNode() : ANetNode() {
12}
13
14/**
15 * Delete any interfaces that we own.
16 */
17CableNetNode::~CableNetNode(){
18}
19
20const QString CableNetNode::nodeDescription(){
21 return tr("\
22<p>Sets up a wired serial or parallel.</p>\
23"
24);
25}
26
27ANetNodeInstance * CableNetNode::createInstance( void ) {
28 return new ACable( this );
29}
30
31const char ** CableNetNode::needs( void ) {
32 return CableNeeds;
33}
34
35const char * CableNetNode::provides( void ) {
36 return "line";
37}
38
39bool CableNetNode::generateProperFilesFor(
40 ANetNodeInstance * ) {
41 return 1;
42}
43
44bool CableNetNode::hasDataFor( const QString & ) {
45 return 0;
46}
47
48bool CableNetNode::generateDataForCommonFile(
49 SystemFile & ,
50 long ,
51 ANetNodeInstance * ) {
52 return 1;
53}
54
55extern "C" {
56void create_plugin( QList<ANetNode> & PNN ) {
57 PNN.append( new CableNetNode() );
58}
59}