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