author | wimpie <wimpie> | 2004-04-02 18:29:49 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-02 18:29:49 (UTC) |
commit | 5334b639c9f97793bcae4f50f7b47c7a2ada4e2f (patch) (unidiff) | |
tree | f55aebd4314ab878bc39b6b08b8323a8ef78d803 /noncore/settings/networksettings2/ppp/ppp_NN.cpp | |
parent | 7c8922b37b5bb7696c0ff2cbc999e2936b9b509f (diff) | |
download | opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.zip opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.tar.gz opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.tar.bz2 |
First import of NS2 app
Diffstat (limited to 'noncore/settings/networksettings2/ppp/ppp_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/ppp/ppp_NN.cpp | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/ppp/ppp_NN.cpp b/noncore/settings/networksettings2/ppp/ppp_NN.cpp new file mode 100644 index 0000000..309c9a1 --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/ppp_NN.cpp | |||
@@ -0,0 +1,62 @@ | |||
1 | #include "ppp_NN.h" | ||
2 | #include "ppp_NNI.h" | ||
3 | |||
4 | static const char * PPPNeeds[] = | ||
5 | { "line", | ||
6 | "modem", | ||
7 | 0 | ||
8 | }; | ||
9 | |||
10 | /** | ||
11 | * Constructor, find all of the possible interfaces | ||
12 | */ | ||
13 | PPPNetNode::PPPNetNode() : ANetNode() { | ||
14 | } | ||
15 | |||
16 | /** | ||
17 | * Delete any interfaces that we own. | ||
18 | */ | ||
19 | PPPNetNode::~PPPNetNode(){ | ||
20 | } | ||
21 | |||
22 | const QString PPPNetNode::nodeDescription(){ | ||
23 | return tr("\ | ||
24 | <p>Sets up IP using PPP.</p>\ | ||
25 | <p>Use this for dialup devices or serial setups</p>\ | ||
26 | " | ||
27 | ); | ||
28 | } | ||
29 | |||
30 | ANetNodeInstance * PPPNetNode::createInstance( void ) { | ||
31 | return new APPP( this ); | ||
32 | } | ||
33 | |||
34 | const char ** PPPNetNode::needs( void ) { | ||
35 | return PPPNeeds; | ||
36 | } | ||
37 | |||
38 | const char * PPPNetNode::provides( void ) { | ||
39 | return "connection"; | ||
40 | } | ||
41 | |||
42 | bool PPPNetNode::generateProperFilesFor( | ||
43 | ANetNodeInstance * ) { | ||
44 | return 1; | ||
45 | } | ||
46 | |||
47 | bool PPPNetNode::hasDataFor( const QString & ) { | ||
48 | return 0; | ||
49 | } | ||
50 | |||
51 | bool PPPNetNode::generateDataForCommonFile( | ||
52 | SystemFile & , | ||
53 | long, | ||
54 | ANetNodeInstance * ) { | ||
55 | return 1; | ||
56 | } | ||
57 | |||
58 | extern "C" { | ||
59 | void create_plugin( QList<ANetNode> & PNN ) { | ||
60 | PNN.append( new PPPNetNode() ); | ||
61 | } | ||
62 | } | ||