--- 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:08 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