filemanager/bkupengine/inc/CMMCScBkupStateValidateDiskSpace.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:31:07 +0100
branchRCL_3
changeset 21 65326cf895ed
parent 0 6a9f87576119
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2005-2008 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 CMMCScBkupStateValidateDiskSpace
*     
*
*/

#ifndef __CMMCSCBKUPSTATEVALIDATEDISKSPACE_H__
#define __CMMCSCBKUPSTATEVALIDATEDISKSPACE_H__

// User includes
#include "CMMCScBkupState.h"


/**
*
*
* @since 3.0
*/
NONSHARABLE_CLASS(CMMCScBkupStateValidateDiskSpace) : public CMMCScBkupState
    {
    public:

        /**
        * Static constructor
        */
        static CMMCScBkupStateValidateDiskSpace* NewL( MMMCScBkupDriver& aDriver );

        /**
        * Destructor
        */
        ~CMMCScBkupStateValidateDiskSpace();

    private:

        /**
        * C++ default constructor
        */
        CMMCScBkupStateValidateDiskSpace( MMMCScBkupDriver& aDriver );

        //   Second phase
        void ConstructL( );

    public: // From CMMCScBkupState
        TMMCScBkupStateId StateId() const;
        TMMCScBkupStateId NextStateId() const;
        TStateExecution CategorySpecific() const { return EStatePerCategoryCommon; }

    private: // From CMMCScBkupState
        void PerformStateInitL();
        void PerformAsynchronousStateStepL();
        
    private: // Internal methods
        
        /**
        *
        */
        void ValidateFreeSpaceBeforeBackupL();
        void ValidateFreeSpaceBeforeRestoreL();
        
    private: // Member data

        //
        TInt64 iCumulatedSize;
        //
        RArray<TMMCScBkupDriveAndSize> iDriveSizes;
        //
        RArray<TMMCScBkupDriveAndSize> iDriveMaxFileSizes;
    };


#endif // __CMMCSCBKUPSTATEVALIDATEDISKSPACE_H__

//End of File