summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/lancard/lancardrun.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings2/lancard/lancardrun.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/lancard/lancardrun.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/noncore/settings/networksettings2/lancard/lancardrun.h b/noncore/settings/networksettings2/lancard/lancardrun.h
index b28dda7..57ef3fb 100644
--- a/noncore/settings/networksettings2/lancard/lancardrun.h
+++ b/noncore/settings/networksettings2/lancard/lancardrun.h
@@ -3,3 +3,3 @@
-#include <asdevice.h>
+#include <netnode.h>
#include <qregexp.h>
@@ -7,3 +7,3 @@
-class LanCardRun : public AsDevice {
+class LanCardRun : public RuntimeInfo {
@@ -12,20 +12,18 @@ public :
LanCardRun( ANetNodeInstance * NNI,
- LanCardData & D ) : AsDevice( NNI ),
- Pat( "eth[0-9]" )
- { Data = &D; }
+ LanCardData & D ) : RuntimeInfo( NNI ),
+ Pat( "eth[0-9]" ) {
+ Data = &D;
+ }
- virtual AsDevice * device( void )
- { return (AsDevice *)this; }
+ virtual RuntimeInfo * device( void )
+ { return this; }
- virtual AsDevice * asDevice( void )
- { return (AsDevice *)this; }
+ bool handlesInterface( const QString & I );
+ bool handlesInterface( const InterfaceInfo & II );
-protected :
+ State_t detectState( void );
- void detectState( NodeCollection * NC );
- bool setState( NodeCollection * NC, Action_t A, bool Force );
- bool canSetState( State_t Curr, Action_t A );
+protected :
- bool handlesInterface( const QString & I );
- bool handlesInterface( const InterfaceInfo & II );
+ QString setMyState( NodeCollection * , Action_t, bool );