fontservices/fontstore/tfs/T_IsolatedFontStore.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 02:02:46 +0200
changeset 0 1fb32624e06b
child 40 91ef7621b7fc
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 1995-2009 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: 
*
*/


#ifndef TISOLATEDFONTSTORE_H
#define TISOLATEDFONTSTORE_H

#include <e32std.h>
#include <e32base.h>
#include <fntstore.h>

/**
Class to create an isolated version of the font store; upon construction
the font store pointer contains a FontStore in its initial state. Functions
are provided to complete the loading of rasterizers and fonts if required.
 */
class CTIsolatedFontStore : public CBase
	{
public:
	~CTIsolatedFontStore();

	static CTIsolatedFontStore* NewL();
	static CTIsolatedFontStore* NewLC();

	void LoadRasterizersL();
	
private:

	CTIsolatedFontStore();
	void ConstructL();
	void ListImplementationsWithRetry(TUid& aInterfaceUid, RImplInfoPtrArray &aImplementationArray, TBool aRomOnly);
	void SafeInstallOfRasterizerL(TUid aInterfaceImplUid);
	
public:
	CFontStore* iFs;
private:
	RHeap* iHeap;
	};

#endif // TISOLATEDFONTSTORE_H