diff -r 3b7506f63335 -r f3d2589f22d6 mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpaccesssingleton.h --- a/mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpaccesssingleton.h Wed Jun 16 16:05:08 2010 +0100 +++ b/mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpaccesssingleton.h Thu Jul 22 16:38:21 2010 +0100 @@ -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; };