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/vpn/vpn_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/vpn/vpn_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/vpn/vpn_NN.cpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/vpn/vpn_NN.cpp b/noncore/settings/networksettings2/vpn/vpn_NN.cpp new file mode 100644 index 0000000..c800929 --- a/dev/null +++ b/noncore/settings/networksettings2/vpn/vpn_NN.cpp | |||
@@ -0,0 +1,61 @@ | |||
1 | #include "vpn_NN.h" | ||
2 | #include "vpn_NNI.h" | ||
3 | |||
4 | static const char * VPNNeeds[] = | ||
5 | { "connection", | ||
6 | 0 | ||
7 | }; | ||
8 | |||
9 | /** | ||
10 | * Constructor, find all of the possible interfaces | ||
11 | */ | ||
12 | VPNNetNode::VPNNetNode() : ANetNode() { | ||
13 | } | ||
14 | |||
15 | /** | ||
16 | * Delete any interfaces that we own. | ||
17 | */ | ||
18 | VPNNetNode::~VPNNetNode(){ | ||
19 | } | ||
20 | |||
21 | const QString VPNNetNode::nodeDescription(){ | ||
22 | return tr("\ | ||
23 | <p>Configure private IP connection.</p>\ | ||
24 | <p>Defines Secure tunnels over non secure IP sessions</p>\ | ||
25 | " | ||
26 | ); | ||
27 | } | ||
28 | |||
29 | ANetNodeInstance * VPNNetNode::createInstance( void ) { | ||
30 | return new AVPN( this ); | ||
31 | } | ||
32 | |||
33 | const char ** VPNNetNode::needs( void ) { | ||
34 | return VPNNeeds; | ||
35 | } | ||
36 | |||
37 | const char * VPNNetNode::provides( void ) { | ||
38 | return "connection"; | ||
39 | } | ||
40 | |||
41 | bool VPNNetNode::generateProperFilesFor( | ||
42 | ANetNodeInstance * ) { | ||
43 | return 1; | ||
44 | } | ||
45 | |||
46 | bool VPNNetNode::hasDataFor( const QString & ) { | ||
47 | return 0; | ||
48 | } | ||
49 | |||
50 | bool VPNNetNode::generateDataForCommonFile( | ||
51 | SystemFile & , | ||
52 | long, | ||
53 | ANetNodeInstance * ) { | ||
54 | return 1; | ||
55 | } | ||
56 | |||
57 | extern "C" { | ||
58 | void create_plugin( QList<ANetNode> & PNN ) { | ||
59 | PNN.append( new VPNNetNode() ); | ||
60 | } | ||
61 | } | ||