00001 #ifndef ASDEVICE_H 00002 #define ASDEVICE_H 00003 00004 #include "system.h" 00005 #include "netnode.h" 00006 00007 // pure virtual (component oriented) interface of any 00008 // plugin that offers a device 00009 class AsDevice : public RuntimeInfo { 00010 00011 public : 00012 00013 AsDevice( ANetNodeInstance * NNI ) : 00014 RuntimeInfo( NNI ) { 00015 AssignedInterface = 0; 00016 } 00017 00018 // return the interface assigned to this device 00019 // e.g eth0, wlan, ... 00020 InterfaceInfo * assignedInterface( void ) 00021 { return AssignedInterface; } 00022 virtual void assignInterface( InterfaceInfo * NI ) 00023 { AssignedInterface = NI; } 00024 00025 private : 00026 00027 InterfaceInfo * AssignedInterface; 00028 00029 }; 00030 00031 #endif
1.4.2