author | wimpie <wimpie> | 2004-04-02 18:30:55 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-02 18:30:55 (UTC) |
commit | 4ea2f227d3fb0d9591bb4f18555420ac47f3397d (patch) (unidiff) | |
tree | 4fdd216cf7af4a747e2ca71e35d15f3d9e646333 /noncore/settings/networksettings2/lancard/lancard_NN.cpp | |
parent | 5334b639c9f97793bcae4f50f7b47c7a2ada4e2f (diff) | |
download | opie-4ea2f227d3fb0d9591bb4f18555420ac47f3397d.zip opie-4ea2f227d3fb0d9591bb4f18555420ac47f3397d.tar.gz opie-4ea2f227d3fb0d9591bb4f18555420ac47f3397d.tar.bz2 |
first import of NS2 app
Diffstat (limited to 'noncore/settings/networksettings2/lancard/lancard_NN.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/lancard/lancard_NN.cpp | 60 |
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 | |||
4 | static const char * LanCardNeeds[] = | ||
5 | { 0 }; | ||
6 | |||
7 | /** | ||
8 | * Constructor, find all of the possible interfaces | ||
9 | */ | ||
10 | LanCardNetNode::LanCardNetNode() : ANetNode() { | ||
11 | } | ||
12 | |||
13 | /** | ||
14 | * Delete any interfaces that we own. | ||
15 | */ | ||
16 | LanCardNetNode::~LanCardNetNode(){ | ||
17 | } | ||
18 | |||
19 | const 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 | |||
27 | ANetNodeInstance * LanCardNetNode::createInstance( void ) { | ||
28 | return new ALanCard( this ); | ||
29 | } | ||
30 | |||
31 | |||
32 | const char ** LanCardNetNode::needs( void ) { | ||
33 | return LanCardNeeds; | ||
34 | } | ||
35 | |||
36 | const char * LanCardNetNode::provides( void ) { | ||
37 | return "device"; | ||
38 | } | ||
39 | |||
40 | bool LanCardNetNode::generateProperFilesFor( | ||
41 | ANetNodeInstance * ) { | ||
42 | return 1; | ||
43 | } | ||
44 | |||
45 | bool LanCardNetNode::hasDataFor( const QString & ) { | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | bool LanCardNetNode::generateDataForCommonFile( | ||
50 | SystemFile & , | ||
51 | long , | ||
52 | ANetNodeInstance * ) { | ||
53 | return 1; | ||
54 | } | ||
55 | |||
56 | extern "C" { | ||
57 | void create_plugin( QList<ANetNode> & PNN ) { | ||
58 | PNN.append( new LanCardNetNode() ); | ||
59 | } | ||
60 | } | ||