filemanager/bkupengine/inc/CMMCScBkupStateArchiveOpSystemData.h
changeset 0 6a9f87576119
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/filemanager/bkupengine/inc/CMMCScBkupStateArchiveOpSystemData.h	Mon Jan 18 20:09:41 2010 +0200
@@ -0,0 +1,105 @@
+/*
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0""
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration for CMMCScBkupStateArchiveOpSystemData
+*     
+*
+*/
+
+#ifndef __CMMCSCBKUPSTATEARCHIVEOPSYSTEMDATA_H__
+#define __CMMCSCBKUPSTATEARCHIVEOPSYSTEMDATA_H__
+
+// System includes
+#include <connect/sbtypes.h>
+
+// User includes
+#include "CMMCScBkupStateOpAware.h"
+#include "TMMCScBkupArchiveVector.h"
+#include "CMMCScBkupTransferWriteRequest.h"
+#include "CMMCScBkupTransferReadRequest.h"
+
+// Namespaces
+using namespace conn;
+
+// Classes referenced
+class CMMCScBkupDataOwnerInfo;
+
+
+
+/**
+*
+*
+* @since 3.0
+*/
+NONSHARABLE_CLASS(CMMCScBkupStateArchiveOpSystemData) : public CMMCScBkupStateOpAware, public MMMCScBkupIndexHandler
+    {
+    public:
+
+        /**
+        * Static constructor
+        */
+        static CMMCScBkupStateArchiveOpSystemData* NewL( MMMCScBkupDriver& aDriver );
+
+        /**
+        * C++ destructor
+        */
+        ~CMMCScBkupStateArchiveOpSystemData( );
+
+    private:
+
+        /**
+        * C++ default constructor
+        */
+        CMMCScBkupStateArchiveOpSystemData( MMMCScBkupDriver& aDriver );
+
+    public: // From CMMCScBkupState
+        TMMCScBkupStateId StateId() const;
+
+    public: // From CMMCScBkupStateOpAware
+        TMMCScBkupStateId NextStateBackupId( TBool aPartial ) const;
+        TMMCScBkupStateId NextStateRestoreId( TBool aPartial ) const;
+
+    private: // From CMMCScBkupStateOpAware
+        void PerformStateInitBackupL( TBool aPartial );
+        void PerformStateInitRestoreL( TBool aPartial );
+        void PerformAsynchronousStateStepBackupL( TBool aPartial );
+        void PerformAsynchronousStateStepRestoreL( TBool aPartial );
+        void PerformLastRightsBackupL( TBool aPartial );
+        void PerformLastRightsRestoreL( TBool aPartial );
+        TBool PerformAsynchronousErrorCleanupBackup( TBool aPartial, TInt aError );
+        TBool PerformAsynchronousErrorCleanupRestore( TBool aPartial, TInt aError );
+
+    private: // From CMMCScBkupState
+        void PerformAsynchronousCancellation();
+
+    private: // From MMMCScBkupIndexHandler
+        void AddIndexRecordL( CMMCScBkupArchiveFooter& aFooter, CMMCScBkupDataOwnerInfo& aDataOwner, const TMMCScBkupArchiveVector& aInfo, TDriveNumber aDrive );
+
+    private: // Member data
+
+        //
+        TInt iIndexValueCurrent;
+        // Associated secure id of the data owner (if it has one)
+        TSecureId iSecureId;
+        //
+        CMMCScBkupWriteDataTransferRequest< TPackageDataType >* iBackupTransferObject;
+        CMMCScBkupReadDataTransferRequest< TPackageDataType >* iRestoreTransferObject;
+    };
+
+
+
+
+
+#endif // __CMMCSCBKUPSTATEARCHIVEOPSYSTEMDATA_H__
+
+//End of File