Diffstat (limited to 'noncore/settings/networksettings2/usb/usb_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/usb/usb_NN.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/usb/usb_NN.cpp b/noncore/settings/networksettings2/usb/usb_NN.cpp index 14c479a..bd9ae2b 100644 --- a/noncore/settings/networksettings2/usb/usb_NN.cpp +++ b/noncore/settings/networksettings2/usb/usb_NN.cpp | |||
@@ -1,49 +1,57 @@ | |||
1 | #include <resources.h> | ||
1 | #include "usb_NN.h" | 2 | #include "usb_NN.h" |
2 | #include "usb_NNI.h" | 3 | #include "usb_NNI.h" |
3 | 4 | ||
4 | static const char * USBNeeds[] = | 5 | static const char * USBNeeds[] = |
5 | { 0 | 6 | { 0 |
6 | }; | 7 | }; |
7 | 8 | ||
9 | static const char * USBProvides[] = | ||
10 | { "device", | ||
11 | 0 | ||
12 | }; | ||
13 | |||
8 | /** | 14 | /** |
9 | * Constructor, find all of the possible interfaces | 15 | * Constructor, find all of the possible interfaces |
10 | */ | 16 | */ |
11 | USBNetNode::USBNetNode() : ANetNode(tr("USB Cable Connect")) { | 17 | USBNetNode::USBNetNode() : ANetNode(tr("USB Cable Connect")) { |
18 | NSResources->addSystemFile( | ||
19 | "interfaces", "/etc/network/interfaces", 1 ); | ||
12 | } | 20 | } |
13 | 21 | ||
14 | /** | 22 | /** |
15 | * Delete any interfaces that we own. | 23 | * Delete any interfaces that we own. |
16 | */ | 24 | */ |
17 | USBNetNode::~USBNetNode(){ | 25 | USBNetNode::~USBNetNode(){ |
18 | } | 26 | } |
19 | 27 | ||
20 | const QString USBNetNode::nodeDescription(){ | 28 | const QString USBNetNode::nodeDescription(){ |
21 | return tr("\ | 29 | return tr("\ |
22 | <p>Configure Ethernet over USB.</p>\ | 30 | <p>Configure Ethernet over USB.</p>\ |
23 | <p>Use this for a computer to computer USB cable connection</p>\ | 31 | <p>Use this for a computer to computer USB cable connection</p>\ |
24 | " | 32 | " |
25 | ); | 33 | ); |
26 | } | 34 | } |
27 | 35 | ||
28 | ANetNodeInstance * USBNetNode::createInstance( void ) { | 36 | ANetNodeInstance * USBNetNode::createInstance( void ) { |
29 | return new AUSB( this ); | 37 | return new AUSB( this ); |
30 | } | 38 | } |
31 | 39 | ||
32 | const char ** USBNetNode::needs( void ) { | 40 | const char ** USBNetNode::needs( void ) { |
33 | return USBNeeds; | 41 | return USBNeeds; |
34 | } | 42 | } |
35 | 43 | ||
36 | const char * USBNetNode::provides( void ) { | 44 | const char ** USBNetNode::provides( void ) { |
37 | return "device"; | 45 | return USBProvides; |
38 | } | 46 | } |
39 | 47 | ||
40 | QString USBNetNode::genNic( long ) { | 48 | QString USBNetNode::genNic( long ) { |
41 | return QString( "usbf" ); | 49 | return QString( "usbf" ); |
42 | } | 50 | } |
43 | 51 | ||
44 | void USBNetNode::setSpecificAttribute( QString & , QString & ) { | 52 | void USBNetNode::setSpecificAttribute( QString & , QString & ) { |
45 | } | 53 | } |
46 | 54 | ||
47 | void USBNetNode::saveSpecificAttribute( QTextStream & ) { | 55 | void USBNetNode::saveSpecificAttribute( QTextStream & ) { |
48 | } | 56 | } |
49 | 57 | ||