filemanager/bkupengine/inc/RMMCScBkupProgressSizer.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-2008 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 RMMCScBkupProgressSizer
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __RMMCSCBKUPPROGRESSSIZER_H__
       
    20 #define __RMMCSCBKUPPROGRESSSIZER_H__
       
    21 
       
    22 // System includes
       
    23 #include <f32file.h>
       
    24 
       
    25 // User includes
       
    26 #include "TMMCScBkupDriveFilter.h"
       
    27 #include "TMMCScBkupOwnerDataType.h"
       
    28 
       
    29 // Classes referenced
       
    30 class CMMCScBkupDataOwnerInfo;
       
    31 class MMMCScBkupProgressObserver;
       
    32 class CMMCScBkupDriveAndOperationTypeManager;
       
    33 
       
    34 
       
    35 /**
       
    36 *
       
    37 *
       
    38 * @since 3.0
       
    39 */
       
    40 NONSHARABLE_CLASS(RMMCScBkupProgressSizer)
       
    41     {
       
    42     public:
       
    43 
       
    44         /**
       
    45         * C++ default constructor
       
    46         */
       
    47         RMMCScBkupProgressSizer( const CMMCScBkupDriveAndOperationTypeManager& aDriveAndOperationTypes );
       
    48 
       
    49     public: // BACKUP SIZING API
       
    50 
       
    51         /**
       
    52         *
       
    53         */
       
    54         TInt64 BackupTotalProgressValueL( const CMMCScBkupDataOwnerInfo& aDataOwner );
       
    55 
       
    56         /**
       
    57         *
       
    58         */
       
    59         void BackupReportFixedProgressForOpL( MMMCScBkupProgressObserver& aProgressManager, TMMCScBkupOwnerDataType aType );
       
    60 
       
    61     public: // RESTORE SIZING API
       
    62 
       
    63         /**
       
    64         *
       
    65         */
       
    66         TInt64 RestoreCombinedDataSizeL( const CMMCScBkupDataOwnerInfo& aOwner );
       
    67 
       
    68     private: // Internal methods
       
    69 
       
    70         /**
       
    71         *
       
    72         */
       
    73         TInt NumberOfDriveOpsRequiredL( const CMMCScBkupDataOwnerInfo& aOwner, TMMCScBkupOwnerDataType aType );
       
    74 
       
    75         /**
       
    76         *
       
    77         */
       
    78         TInt64 AmountOfPublicDataToBeRestoredL( const CMMCScBkupDataOwnerInfo& aOwner );
       
    79 
       
    80     private: // Member data
       
    81 
       
    82         //
       
    83         const CMMCScBkupDriveAndOperationTypeManager& iDriveAndOperationTypes;
       
    84         //
       
    85         TMMCScBkupDriveFilter iDriveFilter;
       
    86 
       
    87     };
       
    88 
       
    89 
       
    90 
       
    91 
       
    92 #endif // __RMMCSCBKUPPROGRESSSIZER_H__
       
    93 
       
    94 //End of File