diff -r f56ec6ce2732 -r 6f9f6e99a23e mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpaccesssingleton.h --- a/mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpaccesssingleton.h Tue May 11 16:40:32 2010 +0300 +++ b/mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpaccesssingleton.h Tue May 25 13:14:13 2010 +0300 @@ -53,6 +53,18 @@ */ IMPORT_C static void CloseSessionL(); + /** + * Issue ActiveToIdle Status Change (ActiveObject) + * this function is to be called after an MTP operation is finish to change status from Active to Idle + * observer of the status might not get the notification if idle->active->idle happens in one synchronous operation + */ + IMPORT_C static void ActiveToIdleStatusChange(); + + /** + * Cancel Outstanding ActiveToIdle Status Change + */ + IMPORT_C static void CancelActiveToIdleStatusChange(); + private: /* * get singleton instance, for internal use @@ -73,8 +85,20 @@ */ ~CMmMtpDpAccessSingleton(); + /** + * get DelayStatusChanger instance, internal use only + */ + static CIdle* DelayStatusChanger(); + + /** + * Perform actural ActiveToIdle Status Change after active object callback + */ + static TInt DoActiveToIdleStatusChange(TAny* Any); + private: CMmMtpDpMetadataAccessWrapper* iWrapper; + + CIdle* iDelayStatusChanger; };