00001 #include "cable_NN.h" 00002 #include "cable_NNI.h" 00003 00004 #include "netnodeinterface.h" 00005 00006 static const char * CableNeeds[] = 00007 { 0 00008 }; 00009 00010 static const char * CableProvides[] = 00011 { "line", 00012 0 00013 }; 00014 00018 CableNetNode::CableNetNode() : ANetNode(tr("Cable connection")) { 00019 } 00020 00024 CableNetNode::~CableNetNode(){ 00025 } 00026 00027 const QString CableNetNode::nodeDescription(){ 00028 return tr("\ 00029 <p>Sets up a wired serial or parallel.</p>\ 00030 " 00031 ); 00032 } 00033 00034 ANetNodeInstance * CableNetNode::createInstance( void ) { 00035 return new ACable( this ); 00036 } 00037 00038 const char ** CableNetNode::needs( void ) { 00039 return CableNeeds; 00040 } 00041 00042 const char ** CableNetNode::provides( void ) { 00043 return CableProvides; 00044 } 00045 00046 void CableNetNode::setSpecificAttribute( QString & , QString & ) { 00047 } 00048 00049 void CableNetNode::saveSpecificAttribute( QTextStream & ) { 00050 } 00051 00052 OPIE_NS2_PLUGIN( NetNodeInterface_T<CableNetNode> )
1.4.2