Diffstat (limited to 'noncore/settings/networksettings2/usb/usbrun.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/usb/usbrun.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/usb/usbrun.h b/noncore/settings/networksettings2/usb/usbrun.h index c9c9121..60f9fe8 100644 --- a/noncore/settings/networksettings2/usb/usbrun.h +++ b/noncore/settings/networksettings2/usb/usbrun.h | |||
@@ -9,27 +9,30 @@ class USBRun : public AsDevice { | |||
9 | 9 | ||
10 | public : | 10 | public : |
11 | 11 | ||
12 | USBRun( ANetNodeInstance * NNI, | 12 | USBRun( ANetNodeInstance * NNI, |
13 | USBData & Data ) : | 13 | USBData & Data ) : |
14 | AsDevice( NNI ), | 14 | AsDevice( NNI ), |
15 | Pat( "usb[0-9abcdef]" ) | 15 | Pat( "usb[0-9abcdef]" ) |
16 | { } | 16 | { } |
17 | 17 | ||
18 | virtual long count( void ) | 18 | virtual long count( void ) |
19 | { return 1; } | 19 | { return 1; } |
20 | virtual QString genNic( long nr ); | 20 | virtual QString genNic( long nr ); |
21 | |||
21 | virtual AsDevice * device( void ) | 22 | virtual AsDevice * device( void ) |
22 | { return asDevice(); } | 23 | { return (AsDevice *)this; } |
23 | 24 | ||
25 | virtual AsDevice * asDevice( void ) | ||
26 | { return (AsDevice *)this; } | ||
24 | protected : | 27 | protected : |
25 | 28 | ||
26 | void detectState( NodeCollection * ); | 29 | void detectState( NodeCollection * ); |
27 | bool setState( NodeCollection * , Action_t A ); | 30 | bool setState( NodeCollection * , Action_t A ); |
28 | bool canSetState( State_t , Action_t A ); | 31 | bool canSetState( State_t , Action_t A ); |
29 | 32 | ||
30 | bool handlesInterface( const QString & I ); | 33 | bool handlesInterface( const QString & I ); |
31 | 34 | ||
32 | private : | 35 | private : |
33 | 36 | ||
34 | InterfaceInfo * getInterface( void ); | 37 | InterfaceInfo * getInterface( void ); |
35 | QRegExp Pat; | 38 | QRegExp Pat; |