fontservices/fontstore/tfs/T_IsolatedFontStore.h
changeset 0 1fb32624e06b
child 40 91ef7621b7fc
equal deleted inserted replaced
-1:000000000000 0:1fb32624e06b
       
     1 /*
       
     2 * Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TISOLATEDFONTSTORE_H
       
    20 #define TISOLATEDFONTSTORE_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <fntstore.h>
       
    25 
       
    26 /**
       
    27 Class to create an isolated version of the font store; upon construction
       
    28 the font store pointer contains a FontStore in its initial state. Functions
       
    29 are provided to complete the loading of rasterizers and fonts if required.
       
    30  */
       
    31 class CTIsolatedFontStore : public CBase
       
    32 	{
       
    33 public:
       
    34 	~CTIsolatedFontStore();
       
    35 
       
    36 	static CTIsolatedFontStore* NewL();
       
    37 	static CTIsolatedFontStore* NewLC();
       
    38 
       
    39 	void LoadRasterizersL();
       
    40 	
       
    41 private:
       
    42 
       
    43 	CTIsolatedFontStore();
       
    44 	void ConstructL();
       
    45 	void ListImplementationsWithRetry(TUid& aInterfaceUid, RImplInfoPtrArray &aImplementationArray, TBool aRomOnly);
       
    46 	void SafeInstallOfRasterizerL(TUid aInterfaceImplUid);
       
    47 	
       
    48 public:
       
    49 	CFontStore* iFs;
       
    50 private:
       
    51 	RHeap* iHeap;
       
    52 	};
       
    53 
       
    54 #endif // TISOLATEDFONTSTORE_H