00001 #include <resources.h> 00002 #include "usb_NN.h" 00003 #include "usb_NNI.h" 00004 00005 #include "netnodeinterface.h" 00006 00007 static const char * USBNeeds[] = 00008 { 0 00009 }; 00010 00011 static const char * USBProvides[] = 00012 { "device", 00013 0 00014 }; 00015 00019 USBNetNode::USBNetNode() : ANetNode(tr("USB Cable Connect")) { 00020 NSResources->addSystemFile( 00021 "interfaces", "/etc/network/interfaces", 1 ); 00022 } 00023 00027 USBNetNode::~USBNetNode(){ 00028 } 00029 00030 const QString USBNetNode::nodeDescription(){ 00031 return tr("\ 00032 <p>Configure Ethernet over USB.</p>\ 00033 <p>Use this for a computer to computer USB cable connection</p>\ 00034 " 00035 ); 00036 } 00037 00038 ANetNodeInstance * USBNetNode::createInstance( void ) { 00039 return new AUSB( this ); 00040 } 00041 00042 const char ** USBNetNode::needs( void ) { 00043 return USBNeeds; 00044 } 00045 00046 const char ** USBNetNode::provides( void ) { 00047 return USBProvides; 00048 } 00049 00050 QString USBNetNode::genNic( long ) { 00051 return QString( "usbf" ); 00052 } 00053 00054 void USBNetNode::setSpecificAttribute( QString & , QString & ) { 00055 } 00056 00057 void USBNetNode::saveSpecificAttribute( QTextStream & ) { 00058 } 00059 00060 OPIE_NS2_PLUGIN( NetNodeInterface_T<USBNetNode> )
1.4.2