usbengines/usbwatcher/src/cusbactivepersonalityhandler.cpp
branchRCL_3
changeset 67 56303587e92f
parent 65 a44cdf4b4bf0
child 27 f6533aee8b2b
--- a/usbengines/usbwatcher/src/cusbactivepersonalityhandler.cpp	Mon Mar 15 12:44:42 2010 +0200
+++ b/usbengines/usbwatcher/src/cusbactivepersonalityhandler.cpp	Wed Mar 31 23:11:07 2010 +0300
@@ -317,12 +317,21 @@
     
     LOG2("Returned error: %d, iState: %d", aError, iState);
 
-    if (KErrNoMemory == aError)
+    switch ( aError )
         {
-        iQueryParams().iQuery = EUSBNotEnoughRam;
-        iPersonalityParams->PersonalityNotifier().ShowQuery(KQueriesNotifier, 
-    	            iQueryParams, iDummyBuf);
-    }
+        case KErrNoMemory:
+            iQueryParams().iQuery = EUSBNotEnoughRam;
+            iPersonalityParams->PersonalityNotifier().ShowQuery(KQueriesNotifier, 
+    	                iQueryParams, iDummyBuf);
+            break;
+        case KErrDiskFull:
+            iQueryParams().iQuery = EUSBDiskFull;
+            iPersonalityParams->PersonalityNotifier().ShowQuery(KQueriesNotifier, 
+    	                iQueryParams, iDummyBuf);
+            break;
+        default:
+        	LOG( "Ignored" );
+        }
 
     //only handle error when TryStart fails now
 	//clean up work to be done in the personality