fontservices/fontstore/tfs/T_IsolatedFontStore.h
changeset 0 1fb32624e06b
child 40 91ef7621b7fc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fontservices/fontstore/tfs/T_IsolatedFontStore.h	Tue Feb 02 02:02:46 2010 +0200
@@ -0,0 +1,54 @@
+/*
+* 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