filemanager/bkupengine/inc/CMMCScBkupStateValidateDiskSpace.h
branchRCL_3
changeset 21 65326cf895ed
parent 0 6a9f87576119
equal deleted inserted replaced
20:491b3ed49290 21:65326cf895ed
       
     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 CMMCScBkupStateValidateDiskSpace
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CMMCSCBKUPSTATEVALIDATEDISKSPACE_H__
       
    20 #define __CMMCSCBKUPSTATEVALIDATEDISKSPACE_H__
       
    21 
       
    22 // User includes
       
    23 #include "CMMCScBkupState.h"
       
    24 
       
    25 
       
    26 /**
       
    27 *
       
    28 *
       
    29 * @since 3.0
       
    30 */
       
    31 NONSHARABLE_CLASS(CMMCScBkupStateValidateDiskSpace) : public CMMCScBkupState
       
    32     {
       
    33     public:
       
    34 
       
    35         /**
       
    36         * Static constructor
       
    37         */
       
    38         static CMMCScBkupStateValidateDiskSpace* NewL( MMMCScBkupDriver& aDriver );
       
    39 
       
    40         /**
       
    41         * Destructor
       
    42         */
       
    43         ~CMMCScBkupStateValidateDiskSpace();
       
    44 
       
    45     private:
       
    46 
       
    47         /**
       
    48         * C++ default constructor
       
    49         */
       
    50         CMMCScBkupStateValidateDiskSpace( MMMCScBkupDriver& aDriver );
       
    51 
       
    52         //   Second phase
       
    53         void ConstructL( );
       
    54 
       
    55     public: // From CMMCScBkupState
       
    56         TMMCScBkupStateId StateId() const;
       
    57         TMMCScBkupStateId NextStateId() const;
       
    58         TStateExecution CategorySpecific() const { return EStatePerCategoryCommon; }
       
    59 
       
    60     private: // From CMMCScBkupState
       
    61         void PerformStateInitL();
       
    62         void PerformAsynchronousStateStepL();
       
    63         
       
    64     private: // Internal methods
       
    65         
       
    66         /**
       
    67         *
       
    68         */
       
    69         void ValidateFreeSpaceBeforeBackupL();
       
    70         void ValidateFreeSpaceBeforeRestoreL();
       
    71         
       
    72     private: // Member data
       
    73 
       
    74         //
       
    75         TInt64 iCumulatedSize;
       
    76         //
       
    77         RArray<TMMCScBkupDriveAndSize> iDriveSizes;
       
    78         //
       
    79         RArray<TMMCScBkupDriveAndSize> iDriveMaxFileSizes;
       
    80     };
       
    81 
       
    82 
       
    83 #endif // __CMMCSCBKUPSTATEVALIDATEDISKSPACE_H__
       
    84 
       
    85 //End of File