--- a/mmappcomponents/harvester/server/src/mpxusbeventhandler.cpp Fri Feb 19 23:18:32 2010 +0200
+++ b/mmappcomponents/harvester/server/src/mpxusbeventhandler.cpp Fri Mar 12 15:44:36 2010 +0200
@@ -41,7 +41,6 @@
CActive( EPriorityStandard ),
iWasMtp ( EFalse ),
iObserver( aObserver ),
- iMTPActive ( EFalse ),
iUsbManConnected( EFalse )
{
CActiveScheduler::Add( this );
@@ -175,7 +174,6 @@
{
MPX_DEBUG1("CMPXUsbEventHandler::DoHandlePSEvent - MTP End");
iObserver.HandleSystemEventL( EUSBMTPEndEvent, removableDrive );
- iMTPActive = EFalse;
}
MPX_DEBUG1("CMPXUsbEventHandler::DoHandlePSEvent - USB Start");
#ifdef RD_MULTIPLE_DRIVE
@@ -199,20 +197,15 @@
if (value == EMtpPSStatusActive)
{
- if( !iMTPActive )
- {
MPX_DEBUG1("CMPXUsbEventHandler::DoHandlePSEvent - MTP Start");
iObserver.HandleSystemEventL( EUSBMTPStartEvent, removableDrive );
iState = KUsbPersonalityIdMTP;
- iMTPActive = ETrue;
- }
}
else if( value != EMtpPSStatusReadyToSync )
{
MPX_DEBUG1("CMPXUsbEventHandler::DoHandlePSEvent - MTP Not Active");
iObserver.HandleSystemEventL( EUSBMTPNotActiveEvent, removableDrive );
iState = KUsbPersonalityIdMTP;
- iMTPActive = EFalse;
}
}
// Make sure MTP and MS flags are OFF
@@ -231,7 +224,6 @@
{
MPX_DEBUG1("CMPXUsbEventHandler::DoHandlePSEvent - MTP End");
iObserver.HandleSystemEventL( EUSBMTPEndEvent, removableDrive );
- iMTPActive = EFalse;
}
iState = KUsbWatcherSelectedPersonalityNone;
}