camerauis/cameraapp/generic/src/CamDriveChangeNotifier.cpp
branchRCL_3
changeset 16 53c8aa5d97a3
parent 15 bf64cebf4673
equal deleted inserted replaced
15:bf64cebf4673 16:53c8aa5d97a3
   357                         KUsbWatcherSelectedPersonality );
   357                         KUsbWatcherSelectedPersonality );
   358     
   358     
   359     iUSBTimer = CCamTimer::NewL( KUSBTimeout, TCallBack(USBTimerCallBack, this));
   359     iUSBTimer = CCamTimer::NewL( KUSBTimeout, TCallBack(USBTimerCallBack, this));
   360     CleanupStack::Pop(); // listener
   360     CleanupStack::Pop(); // listener
   361     CleanupStack::Pop(); // listener 2
   361     CleanupStack::Pop(); // listener 2
       
   362     //if USB has been inserted as Mass Storage, USB timer need to start
       
   363     TInt value = 0;
       
   364     iUsbMSWatcher->Get( value );
       
   365     if( iUSBTimer && KUsbPersonalityIdMS == value ) 
       
   366         {
       
   367         iUSBTimer->Cancel();
       
   368         iUSBTimer->StartTimer();
       
   369         }
   362     
   370     
   363     StartMonitoring();
   371     StartMonitoring();
   364 
   372 
   365     }
   373     }
   366 
   374