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 | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/noncore/settings/networksettings2/usb/usb_NN.cpp b/noncore/settings/networksettings2/usb/usb_NN.cpp index c10a09c..14c479a 100644 --- a/noncore/settings/networksettings2/usb/usb_NN.cpp +++ b/noncore/settings/networksettings2/usb/usb_NN.cpp | |||
@@ -32,39 +32,16 @@ ANetNodeInstance * USBNetNode::createInstance( void ) { | |||
32 | const char ** USBNetNode::needs( void ) { | 32 | const char ** USBNetNode::needs( void ) { |
33 | return USBNeeds; | 33 | return USBNeeds; |
34 | } | 34 | } |
35 | 35 | ||
36 | const char * USBNetNode::provides( void ) { | 36 | const char * USBNetNode::provides( void ) { |
37 | return "device"; | 37 | return "device"; |
38 | } | 38 | } |
39 | 39 | ||
40 | bool USBNetNode::generateProperFilesFor( | ||
41 | ANetNodeInstance * ) { | ||
42 | return 0; | ||
43 | } | ||
44 | |||
45 | bool USBNetNode::hasDataFor( const QString & S ) { | ||
46 | return (S== "interfaces"); | ||
47 | } | ||
48 | |||
49 | bool USBNetNode::generateDeviceDataForCommonFile( | ||
50 | SystemFile & S , | ||
51 | long DevNr ) { | ||
52 | QString NIC = genNic( DevNr ); | ||
53 | |||
54 | if( S.name() == "interfaces" ) { | ||
55 | // generate mapping stanza for this interface | ||
56 | S << "# check if " << NIC << " can be brought UP" << endl; | ||
57 | S << "mapping " << NIC << endl; | ||
58 | S << " script networksettings2-request" << endl << endl; | ||
59 | } | ||
60 | return 0; | ||
61 | } | ||
62 | |||
63 | QString USBNetNode::genNic( long ) { | 40 | QString USBNetNode::genNic( long ) { |
64 | return QString( "usbf" ); | 41 | return QString( "usbf" ); |
65 | } | 42 | } |
66 | 43 | ||
67 | void USBNetNode::setSpecificAttribute( QString & , QString & ) { | 44 | void USBNetNode::setSpecificAttribute( QString & , QString & ) { |
68 | } | 45 | } |
69 | 46 | ||
70 | void USBNetNode::saveSpecificAttribute( QTextStream & ) { | 47 | void USBNetNode::saveSpecificAttribute( QTextStream & ) { |