summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/usb
authorwimpie <wimpie>2005-01-06 23:52:47 (UTC)
committer wimpie <wimpie>2005-01-06 23:52:47 (UTC)
commita8e5ecd107a79f940d8a99d4a77071606a3a932f (patch) (unidiff)
tree3b2603d07877fb05fc5f2a0dbbbcf3ad1cce74c3 /noncore/settings/networksettings2/usb
parenta056b6d067800486d9c1ce99d1b923289d335e8f (diff)
downloadopie-a8e5ecd107a79f940d8a99d4a77071606a3a932f.zip
opie-a8e5ecd107a79f940d8a99d4a77071606a3a932f.tar.gz
opie-a8e5ecd107a79f940d8a99d4a77071606a3a932f.tar.bz2
Some namespace } -> };
added NS2SetMac.sh script in control file added activate/disactivate for usb renamed templates directory to NS2templates
Diffstat (limited to 'noncore/settings/networksettings2/usb') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/usb/usbrun.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/usb/usbrun.cpp b/noncore/settings/networksettings2/usb/usbrun.cpp
index f8824e0..0a46642 100644
--- a/noncore/settings/networksettings2/usb/usbrun.cpp
+++ b/noncore/settings/networksettings2/usb/usbrun.cpp
@@ -71,7 +71,19 @@ State_t USBRun::detectState( void ) {
71 return Unavailable; 71 return Unavailable;
72} 72}
73 73
74QString USBRun::setMyState( NodeCollection *, Action_t , bool ) { 74QString USBRun::setMyState( NodeCollection * NC, Action_t A, bool ) {
75
76 // nothing needs to be done to 'activate' or 'deactivate'
77 // a cable
78
79 // perhaps (later) we can figure out if the device is IN the
80 // cradle
81 if( A == Activate ) {
82 NC->setCurrentState( Available );
83 } else if ( A == Deactivate ) {
84 NC->setCurrentState( Unavailable );
85 }
86
75 return QString(); 87 return QString();
76} 88}
77 89