author | wimpie <wimpie> | 2004-04-10 13:06:13 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-10 13:06:13 (UTC) |
commit | db9f0e2a7fd93157d95f421534fcc3015abe53e0 (patch) (unidiff) | |
tree | 001918ca18d0d74f3e49597f766c070bea71e25c /noncore/settings/networksettings2/usb | |
parent | 6bcdc8cd41199dce849b800b4296011faf6281df (diff) | |
download | opie-db9f0e2a7fd93157d95f421534fcc3015abe53e0.zip opie-db9f0e2a7fd93157d95f421534fcc3015abe53e0.tar.gz opie-db9f0e2a7fd93157d95f421534fcc3015abe53e0.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'noncore/settings/networksettings2/usb') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/usb/usbrun.cpp | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings2/usb/usbrun.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/usb/usbrun.cpp b/noncore/settings/networksettings2/usb/usbrun.cpp index 4ce6721..beacd7b 100644 --- a/noncore/settings/networksettings2/usb/usbrun.cpp +++ b/noncore/settings/networksettings2/usb/usbrun.cpp | |||
@@ -66,25 +66,25 @@ void USBRun::detectState( NodeCollection * NC ) { | |||
66 | fprintf( stderr, "Released(OFF)\n" ); | 66 | fprintf( stderr, "Released(OFF)\n" ); |
67 | // proper type, and Not UP -> free | 67 | // proper type, and Not UP -> free |
68 | NC->setCurrentState( Off ); | 68 | NC->setCurrentState( Off ); |
69 | return; | 69 | return; |
70 | } | 70 | } |
71 | } | 71 | } |
72 | // no free found | 72 | // no free found |
73 | fprintf( stderr, "UNA\n" ); | 73 | fprintf( stderr, "UNA\n" ); |
74 | 74 | ||
75 | NC->setCurrentState( Unavailable ); | 75 | NC->setCurrentState( Unavailable ); |
76 | } | 76 | } |
77 | 77 | ||
78 | bool USBRun::setState( NodeCollection * NC, Action_t A ) { | 78 | bool USBRun::setState( NodeCollection * NC, Action_t A, bool ) { |
79 | 79 | ||
80 | // we only handle activate and deactivate | 80 | // we only handle activate and deactivate |
81 | switch( A ) { | 81 | switch( A ) { |
82 | case Activate : | 82 | case Activate : |
83 | { | 83 | { |
84 | if( NC->currentState() != Off ) { | 84 | if( NC->currentState() != Off ) { |
85 | return 0; | 85 | return 0; |
86 | } | 86 | } |
87 | InterfaceInfo * N = getInterface(); | 87 | InterfaceInfo * N = getInterface(); |
88 | if( ! N ) { | 88 | if( ! N ) { |
89 | // no interface available | 89 | // no interface available |
90 | NC->setCurrentState( Unavailable ); | 90 | NC->setCurrentState( Unavailable ); |
diff --git a/noncore/settings/networksettings2/usb/usbrun.h b/noncore/settings/networksettings2/usb/usbrun.h index 6c6e4e4..03e21ab 100644 --- a/noncore/settings/networksettings2/usb/usbrun.h +++ b/noncore/settings/networksettings2/usb/usbrun.h | |||
@@ -14,24 +14,24 @@ public : | |||
14 | AsDevice( NNI ), | 14 | AsDevice( NNI ), |
15 | Pat( "usb[0-9abcdef]" ) | 15 | Pat( "usb[0-9abcdef]" ) |
16 | { } | 16 | { } |
17 | 17 | ||
18 | virtual AsDevice * device( void ) | 18 | virtual AsDevice * device( void ) |
19 | { return (AsDevice *)this; } | 19 | { return (AsDevice *)this; } |
20 | 20 | ||
21 | virtual AsDevice * asDevice( void ) | 21 | virtual AsDevice * asDevice( void ) |
22 | { return (AsDevice *)this; } | 22 | { return (AsDevice *)this; } |
23 | protected : | 23 | protected : |
24 | 24 | ||
25 | void detectState( NodeCollection * ); | 25 | void detectState( NodeCollection * ); |
26 | bool setState( NodeCollection * , Action_t A ); | 26 | bool setState( NodeCollection * , Action_t A, bool ); |
27 | bool canSetState( State_t , Action_t A ); | 27 | bool canSetState( State_t , Action_t A ); |
28 | 28 | ||
29 | bool handlesInterface( const QString & I ); | 29 | bool handlesInterface( const QString & I ); |
30 | 30 | ||
31 | private : | 31 | private : |
32 | 32 | ||
33 | InterfaceInfo * getInterface( void ); | 33 | InterfaceInfo * getInterface( void ); |
34 | QRegExp Pat; | 34 | QRegExp Pat; |
35 | 35 | ||
36 | }; | 36 | }; |
37 | #endif | 37 | #endif |