diff -r 235a7fc86938 -r 82749d516180 imagehandlingutilities/thumbnailmanager/thumbagdaemon/inc/thumbagprocessor.h --- a/imagehandlingutilities/thumbnailmanager/thumbagdaemon/inc/thumbagprocessor.h Tue Feb 02 00:23:15 2010 +0200 +++ b/imagehandlingutilities/thumbnailmanager/thumbagdaemon/inc/thumbagprocessor.h Fri Feb 19 23:07:36 2010 +0200 @@ -29,9 +29,11 @@ #include #include #include +#include +#include "tmactivitymanager.h" +#include "tmformatobserver.h" //FORWARD DECLARATIONS -class CThumbAGFormatObserver; class MMPXCollectionUtility; /** @@ -43,7 +45,10 @@ public MThumbnailManagerObserver, public MMdEQueryObserver, public MHarvesterEventObserver, - public MMPXCollectionObserver + public MMPXCollectionObserver, + public MHWRMLightObserver, + public MTMActivityManagerObserver, + public MTMFormatObserver { public: @@ -80,7 +85,11 @@ HarvesterEventState aHarvesterEventState, TInt aItemsLeft ); -private: // From MMPXCollectionObserver + //From MTMFormatObserver + void FormatNotification(TBool aFormat); + +private: + // From MMPXCollectionObserver /// See @ref MMPXCollectionObserver::HandleCollectionMessageL void HandleCollectionMessage( CMPXMessage* aMessage, TInt aError ); @@ -92,7 +101,14 @@ /// See @ref MMPXCollectionObserver::HandleCollectionMediaL void HandleCollectionMediaL( const CMPXMedia& aMedia, TInt aError ); - + +private: //From MHWRMLightObserver + void LightStatusChanged(TInt aTarget, CHWRMLight::TLightStatus aStatus); + +private: //From MTMActivityManagerObserver + void ActivityDetected(); + void InactivityDetected(); + public: /** @@ -131,12 +147,12 @@ void SetForceRun( const TBool aForceRun ); - void SetFormat(TBool aStatus); + TBool IsInactive(); - void QueryForPlaceholdersL(); - protected: + void QueryAllItemsL(); + /** * QueryL * @@ -145,6 +161,8 @@ */ void QueryL( RArray& aIDArray ); + void QueryPlaceholdersL(); + protected: /** @@ -219,7 +237,7 @@ * @since S60 v5.0 */ void CancelTimeout(); - + private: // not own @@ -229,24 +247,19 @@ // own CThumbnailManager* iTMSession; CMdEObjectQuery* iQuery; - CMdEObjectQuery* iQueryForPlaceholders; + CMdEObjectQuery* iQueryAllItems; + CMdEObjectQuery* iQueryPlaceholders; RArray iAddQueue; RArray iModifyQueue; RArray iRemoveQueue; - RArray iPresentQueue; RArray iQueryQueue; + RArray iPlaceholderQueue; - RArray iTempModifyQueue; - RArray iTempAddQueue; - - RArray iPlaceholderIDs; TBool iQueryActive; TBool iQueryReady; - TBool iQueryForPlaceholdersActive; - TBool iModify; TInt iProcessingCount; @@ -254,8 +267,11 @@ TBool iHarvesting; TBool iHarvestingTemp; + //Flag is MDS placeholder harvesting active + TBool iPHHarvesting; + TBool iPHHarvestingTemp; + CPeriodic* iPeriodicTimer; - TBool iTimerActive; //MDS Harvester client RHarvesterClient iHarvesterClient; @@ -280,7 +296,7 @@ //PS key to get info server's idle status RProperty iProperty; - CThumbAGFormatObserver* iFormatObserver; + CTMFormatObserver* iFormatObserver; TBool iFormatting; TBool iSessionDied; @@ -291,6 +307,20 @@ //Flag is MPX harvesting or MTP synchronisation in progress TBool iMPXHarvesting; + //inactivity polling timer + CPeriodic* iInactivityTimer; + //overall status of device + TBool iIdle; + + //Backlight control + CHWRMLight* iLight; + #ifdef _DEBUG + TInt iLightMask; + #endif + //backlight status + TBool iLights; + + CTMActivityManager* iActivityManager; }; #endif // THUMBAGPROCESSOR_H