diff -r 646a02f170b9 -r 3cebc1a84278 harvester/monitorplugins/mmcplugin/inc/mmcscannerao.h --- a/harvester/monitorplugins/mmcplugin/inc/mmcscannerao.h Fri Mar 12 15:44:28 2010 +0200 +++ b/harvester/monitorplugins/mmcplugin/inc/mmcscannerao.h Mon Mar 15 12:42:24 2010 +0200 @@ -28,7 +28,7 @@ // FORWARD DECLARATION class MMonitorPluginObserver; -class CMmcScannerAO : public CTimer +class CMmcScannerAO : public CActive { public: // Cancel and destroy @@ -37,7 +37,7 @@ // Two-phased constructor. static CMmcScannerAO* NewL( TUint32 aMediaId, CMdEHarvesterSession* aMdEClient, MMonitorPluginObserver* aObserver, CHarvesterPluginFactory* aHarvesterPluginFactory, - const TInt aPriority, TBool aAlreadyWaited ); + const TInt aPriority ); public: @@ -48,7 +48,7 @@ const TInt aPriority ); // Second-phase constructor - void ConstructL( TBool aAlreadyWaited ); + void ConstructL(); private: enum TCMmcScannerAOState @@ -75,6 +75,11 @@ void SetState( TCMmcScannerAOState aState ); + /** + * From CActive + */ + void DoCancel(); + private: TInt iState; // State of the active object @@ -101,6 +106,8 @@ RPointerArray iHdArray; CHarvesterEventManager* iHEM; + + RTimer iTimer; }; #endif // CMMCSCANNERAO_H