pimappservices/calendar/server/inc/agsbackuprestoreagent.h
branchRCL_3
changeset 31 97232defd20e
parent 0 f979ecb2b13e
equal deleted inserted replaced
30:bd7edf625bdd 31:97232defd20e
    31 @internalComponent
    31 @internalComponent
    32 */
    32 */
    33 class CAgnServBackupRestoreAgent : public CActive
    33 class CAgnServBackupRestoreAgent : public CActive
    34 	{
    34 	{
    35 public:
    35 public:
    36  	static CAgnServBackupRestoreAgent* NewL(CAgnServFileMgr& aFileMgr);
    36  	static CAgnServBackupRestoreAgent* NewL(CAgnServFileMgr& aFileMgr ,TBool& aBackupRestoreInProgress);
    37 	~CAgnServBackupRestoreAgent();
    37 	~CAgnServBackupRestoreAgent();
    38 	
    38 	
    39 	TBool BackupInProgress() const;
    39 	TBool BackupInProgress() const;
    40 	TBool RestoreInProgress() const;
    40 	TBool RestoreInProgress() const;
    41 	void Start();
    41 	void Start();
    42 	
    42 	
    43 private:
    43 private:
    44 	CAgnServBackupRestoreAgent(CAgnServFileMgr& aFileMgr);
    44 	CAgnServBackupRestoreAgent(CAgnServFileMgr& aFileMgr , TBool& aBackupRestoreInProgress);
    45 	
    45 	
    46 private:	// from CActive
    46 private:	// from CActive
    47 	void RunL();
    47 	void RunL();
    48 	TInt RunError(TInt aError);
    48 	TInt RunError(TInt aError);
    49 	void DoCancel();
    49 	void DoCancel();
    55 	Backup/Restore events.
    55 	Backup/Restore events.
    56 	*/
    56 	*/
    57 	RProperty iBackupRestoreNotification;
    57 	RProperty iBackupRestoreNotification;
    58 	TInt iCurrentState;
    58 	TInt iCurrentState;
    59 	CAgnServFileMgr& iFileMgr;
    59 	CAgnServFileMgr& iFileMgr;
       
    60 	TBool& iBackupRestoreInProgress;
    60 	};
    61 	};
    61 
    62 
    62 #endif
    63 #endif