diff -r d1daf54a55b5 -r 1957042d8c7e filemanager/src/fmbkupengine/inc/CMMCScBkupArchiveFooter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filemanager/src/fmbkupengine/inc/CMMCScBkupArchiveFooter.h Fri Apr 16 14:53:38 2010 +0300 @@ -0,0 +1,113 @@ +/* +* Copyright (c) 2005 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 CMMCScBkupArchiveFooter +* +* +*/ + +#ifndef __CMMCSCBKUPARCHIVEFOOTER_H__ +#define __CMMCSCBKUPARCHIVEFOOTER_H__ + +// System includes +#include + +// User includes +#include "CMMCScBkupIndexBase.h" +#include "RMMCScBkupPointerArray.h" +#include "TMMCScBkupDriveAndSize.h" + +// Classes referenced +class MMMCScBkupDriver; +class MMMCScBkupArchiveDataInterface; +class CMMCScBkupIndexRegistrationData; + + + +/** +* +* +* @since 3.0 +*/ +NONSHARABLE_CLASS(CMMCScBkupArchiveFooter) : public CBase + { + public: + + /** + * Static constructor + */ + static CMMCScBkupArchiveFooter* NewL( MMMCScBkupArchiveDataInterface& aDataInterface, MMMCScBkupDriver& aDriver ); + + /** + * C++ destructor + */ + ~CMMCScBkupArchiveFooter(); + + private: + + /** + * C++ default constructor + */ + CMMCScBkupArchiveFooter( MMMCScBkupArchiveDataInterface& aDataInterface, MMMCScBkupDriver& aDriver ); + + /** + * + */ + void ConstructL(); + + public: // API + + /** + * + */ + CMMCScBkupIndexBase& IndexByType( TMMCScBkupOwnerDataType aType ); + + /** + * + */ + CMMCScBkupIndexBase* IndexByTypeOrNull( TMMCScBkupOwnerDataType aType ); + + public: // Store/Restore + + /** + * + */ + void StoreL(); + + /** + * + */ + void RestoreL( TInt aCalculatedFooterOffsetWithinArchive ); + + private: // Internal enumerations + enum + { + EStreamFormatVersion1 = 1 + }; + + private: // Member data + + // + MMMCScBkupArchiveDataInterface& iDataInterface; + // + MMMCScBkupDriver& iDriver; + // + RMMCScBkupPointerArray< CMMCScBkupIndexBase > iIndicies; + }; + + + + +#endif // __CMMCSCBKUPARCHIVEFOOTER_H__ + +//End of File