diff -r 491b3ed49290 -r 65326cf895ed filemanager/src/fmbkupengine/inc/CMMCScBkupDriveDataSizeManager.h --- a/filemanager/src/fmbkupengine/inc/CMMCScBkupDriveDataSizeManager.h Tue Aug 31 15:06:05 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,247 +0,0 @@ -/* -* 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 of CMMCScBkupDriveSizer -* -* -*/ - -#ifndef __CMMCSCBKUPDRIVEDATASIZEMANAGER_H__ -#define __CMMCSCBKUPDRIVEDATASIZEMANAGER_H__ - -// System includes -#include -#include - -// User includes -#include "TMMCScBkupDriveAndSize.h" -#include "RMMCScBkupPointerArray.h" -#include "TMMCScBkupOwnerDataType.h" - - -/** -* -* @since 3.0 -*/ -NONSHARABLE_CLASS(CMMCScBkupDriveSizer) : public CBase - { - public: - - /** - * - */ - static CMMCScBkupDriveSizer* NewLC( TMMCScBkupOwnerDataType aType ); - - /** - * - */ - static CMMCScBkupDriveSizer* NewLC( RReadStream& aStream ); - - /** - * C++ destructor - */ - ~CMMCScBkupDriveSizer(); - - private: - - /** - * C++ constructor - */ - CMMCScBkupDriveSizer( TMMCScBkupOwnerDataType aType ); - - /** - * - */ - void ConstructL(); - - public: // API - - /** - * - */ - inline TMMCScBkupOwnerDataType DataType() const { return iDataType; } - - /** - * - */ - void AddToSizeL( TInt64 aAmount, TDriveNumber aDrive ); - - /** - * - */ - void Reset(); - - /** - * - */ - void Reset( TDriveNumber aDrive ); - - /** - * - */ - TInt64 Size() const; - - /** - * - */ - TInt64 Size( TDriveNumber aDrive ) const; - - public: - - /** - * Internalize object from stream - */ - void InternalizeL( RReadStream& aStream ); - - /** - * Externalize object to stream - */ - void ExternalizeL( RWriteStream& aStream ) const; - - private: // Internal methods - - /** - * - */ - TMMCScBkupDriveAndSize* EntryByDrive( TDriveNumber aDrive ); - - private: // Internal enumerations - enum - { - EStreamFormatVersion1 = 1 - }; - - private: // Data members - - // - RArray iEntries; - // - TMMCScBkupOwnerDataType iDataType; - }; - - - - - - -/** -* -* @since 3.0 -*/ -NONSHARABLE_CLASS(CMMCScBkupDataTypeSizer) : public CBase - { - public: - - /** - * - */ - static CMMCScBkupDataTypeSizer* NewL(); - - /** - * - */ - static CMMCScBkupDataTypeSizer* NewLC( RReadStream& aStream ); - - /** - * C++ destructor - */ - ~CMMCScBkupDataTypeSizer(); - - private: - - /** - * C++ constructor - */ - CMMCScBkupDataTypeSizer(); - - /** - * - */ - void ConstructL(); - - public: // API - - /** - * - */ - void AddToSizeL( TMMCScBkupOwnerDataType aDataType, TInt64 aAmount, TDriveNumber aDrive ); - - /** - * - */ - void Reset( TMMCScBkupOwnerDataType aDataType ); - - /** - * - */ - void Reset( TMMCScBkupOwnerDataType aDataType, TDriveNumber aDrive ); - - /** - * - */ - TInt64 Size( TMMCScBkupOwnerDataType aDataType ) const; - - /** - * - */ - TInt64 Size( TMMCScBkupOwnerDataType aDataType, TDriveNumber aDrive ) const; - - /** - * - */ - void GetSizesL( RArray& aSizes ) const; - - /** - * - */ - TInt64 CombinedSize( TDriveNumber aDrive ) const; - - public: - - /** - * Internalize object from stream - */ - void InternalizeL( RReadStream& aStream ); - - /** - * Externalize object to stream - */ - void ExternalizeL( RWriteStream& aStream ) const; - - private: // Internal methods - - /** - * - */ - CMMCScBkupDriveSizer* SizerByDataType( TMMCScBkupOwnerDataType aDataType ); - - private: // Internal enumerations - enum - { - EStreamFormatVersion1 = 1 - }; - - private: // Data members - - // - RMMCScBkupPointerArray iSizers; - }; - - - - - - -#endif // __CMMCSCBKUPDRIVEDATASIZEMANAGER_H__ - -//End of File