00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __DUMMY_RESTORE_STATEPOLICY_H__
00019 #define __DUMMY_RESTORE_STATEPOLICY_H__
00020
00021 #include <e32base.h>
00022 #include <ssm/ssmstatepolicy.h>
00023 #include <ssm/ssmstate.h>
00024
00030 NONSHARABLE_CLASS(CSsmDummyRestoreStatePolicy) : public CBase, public MSsmStatePolicy
00031 {
00032 public:
00033 IMPORT_C static MSsmStatePolicy* NewL();
00034
00035
00036 void Initialize(TRequestStatus& aStatus);
00037 void InitializeCancel();
00038 void Release();
00039 TResponse TransitionAllowed(const TSsmStateTransition& aRequest, TSsmStateTransition const* aCurrent, TSsmStateTransition const* aQueued, const RMessagePtr2& aMessage);
00040 void PrepareCommandList(TSsmState aState, TInt aReason, TRequestStatus& aStatus);
00041 void doPrepareCommandListL(TSsmState aState);
00042 void PrepareCommandListCancel();
00043 CSsmCommandList* CommandList();
00044 TBool GetNextState(TSsmState aCurrentTransition, TInt aReason, TInt aError, TInt aSeverity, TSsmState& aNextState);
00045
00046 private:
00047
00048 CSsmDummyRestoreStatePolicy();
00049 ~CSsmDummyRestoreStatePolicy();
00050
00051 private:
00052 CSsmCommandList* iCommandList;
00053 };
00054
00055 #endif //__DUMMY_RESTORE_STATEPOLICY_H__