filemanager/bkupengine/inc/CMMCScBkupStateArchiveOpPassiveData.h
branchRCL_3
changeset 20 491b3ed49290
parent 19 95243422089a
child 21 65326cf895ed
equal deleted inserted replaced
19:95243422089a 20:491b3ed49290
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Declaration for CMMCScBkupStateArchiveOpPassiveData
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CMMCSCBKUPSTATEARCHIVEOPPASSIVEDATA_H__
       
    20 #define __CMMCSCBKUPSTATEARCHIVEOPPASSIVEDATA_H__
       
    21 
       
    22 // System includes
       
    23 #include <connect/sbtypes.h>
       
    24 
       
    25 // User includes
       
    26 #include "CMMCScBkupStateOpAware.h"
       
    27 #include "TMMCScBkupArchiveVector.h"
       
    28 #include "CMMCScBkupTransferWriteRequest.h"
       
    29 #include "CMMCScBkupTransferReadRequest.h"
       
    30 
       
    31 // Namespaces
       
    32 using namespace conn;
       
    33 
       
    34 // Classes referenced
       
    35 class CMMCScBkupDataOwnerInfo;
       
    36 
       
    37 
       
    38 /**
       
    39 *
       
    40 *
       
    41 * @since 3.0
       
    42 */
       
    43 NONSHARABLE_CLASS(CMMCScBkupStateArchiveOpPassiveData) : public CMMCScBkupStateOpAware, public MMMCScBkupIndexHandler
       
    44     {
       
    45     public:
       
    46 
       
    47         /**
       
    48         * Static constructor
       
    49         */
       
    50         static CMMCScBkupStateArchiveOpPassiveData* NewL( MMMCScBkupDriver& aDriver );
       
    51 
       
    52         /**
       
    53         * C++ destructor
       
    54         */
       
    55         ~CMMCScBkupStateArchiveOpPassiveData( );
       
    56 
       
    57     private:
       
    58 
       
    59         /**
       
    60         * C++ default constructor
       
    61         */
       
    62         CMMCScBkupStateArchiveOpPassiveData( MMMCScBkupDriver& aDriver );
       
    63 
       
    64     public: // From CMMCScBkupState
       
    65         TMMCScBkupStateId StateId() const;
       
    66 
       
    67     public: // From CMMCScBkupStateOpAware
       
    68         TMMCScBkupStateId NextStateBackupId( TBool aPartial ) const;
       
    69         TMMCScBkupStateId NextStateRestoreId( TBool aPartial ) const;
       
    70 
       
    71     private: // From CMMCScBkupStateOpAware
       
    72         void PerformStateInitBackupL( TBool aPartial );
       
    73         void PerformStateInitRestoreL( TBool aPartial );
       
    74         void PerformAsynchronousStateStepBackupL( TBool aPartial );
       
    75         void PerformAsynchronousStateStepRestoreL( TBool aPartial );
       
    76         void PerformLastRightsBackupL( TBool aPartial );
       
    77         TBool PerformAsynchronousErrorCleanupBackup( TBool aPartial, TInt aError );
       
    78         TBool PerformAsynchronousErrorCleanupRestore( TBool aPartial, TInt aError );
       
    79 
       
    80     private: // From CMMCScBkupState
       
    81         void PerformAsynchronousCancellation();
       
    82 
       
    83     private: // From MMMCScBkupIndexHandler
       
    84         void AddIndexRecordL( CMMCScBkupArchiveFooter& aFooter, CMMCScBkupDataOwnerInfo& aDataOwner, const TMMCScBkupArchiveVector& aInfo, TDriveNumber aDrive );
       
    85 
       
    86     private: // Member data
       
    87 
       
    88         //
       
    89         TInt iIndexValueCurrent;
       
    90         //
       
    91         CMMCScBkupWriteDataTransferRequest< TTransferDataType >* iBackupTransferObject;
       
    92         //
       
    93         CMMCScBkupReadDataTransferRequest< TTransferDataType >* iRestoreTransferObject;
       
    94     };
       
    95 
       
    96 
       
    97 
       
    98 
       
    99 #endif // __CMMCSCBKUPSTATEARCHIVEOPPASSIVEDATA_H__
       
   100 
       
   101 //End of File