sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef CREGEN_H_ sl@0: #define CREGEN_H_ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: class CHeapRepository; sl@0: sl@0: /** sl@0: @internalTechnology sl@0: */ sl@0: class CCreGenerator : public CBase sl@0: { sl@0: public: sl@0: void static CommitChangesToCreL(RFs& aFs,TUint8 aPersistVersion,CHeapRepository& aRep,const TDesC& aTargetFilePath); sl@0: void static CreateReposFromCreL(RFs& aFs,CHeapRepository& aRep, const TDesC& aFilePath sl@0: #ifdef SYMBIAN_CENTREP_SUPPORT_MULTIROFS sl@0: ,TUint8& aCreVersion sl@0: #endif sl@0: ); sl@0: sl@0: void static ExternalizeCre(TUint8 aPersistVersion,const CHeapRepository& aRep, RWriteStream& aStream); sl@0: void static InternalizeCreL(CHeapRepository& aRep, RReadStream& aStream sl@0: #ifdef SYMBIAN_CENTREP_SUPPORT_MULTIROFS sl@0: ,TUint8& aCreVersion sl@0: #endif sl@0: ); sl@0: }; sl@0: sl@0: #endif /*CREGEN_H_*/