diff -r 491b3ed49290 -r 65326cf895ed filemanager/bkupengine/inc/CMMCScBkupStateValidateDiskSpace.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filemanager/bkupengine/inc/CMMCScBkupStateValidateDiskSpace.h Wed Sep 01 12:31:07 2010 +0100 @@ -0,0 +1,85 @@ +/* +* 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 iDriveSizes; + // + RArray iDriveMaxFileSizes; + }; + + +#endif // __CMMCSCBKUPSTATEVALIDATEDISKSPACE_H__ + +//End of File