1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/fontstore/tfs/T_IsolatedFontStore.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,63 @@
1.4 +/*
1.5 +* Copyright (c) 1995-2010 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +#ifndef TISOLATEDFONTSTORE_H
1.23 +#define TISOLATEDFONTSTORE_H
1.24 +
1.25 +#include <e32std.h>
1.26 +#include <e32base.h>
1.27 +#include <fntstore.h>
1.28 +
1.29 +/**
1.30 +Class to create an isolated version of the font store; upon construction
1.31 +the font store pointer contains a FontStore in its initial state. Functions
1.32 +are provided to complete the loading of rasterizers and fonts if required.
1.33 + */
1.34 +class CTIsolatedFontStore : public CBase
1.35 + {
1.36 +public:
1.37 + ~CTIsolatedFontStore();
1.38 +
1.39 + static CTIsolatedFontStore* NewL();
1.40 + static CTIsolatedFontStore* NewLC();
1.41 +
1.42 + static CTIsolatedFontStore* NewL(RHeap*);
1.43 + static CTIsolatedFontStore* NewLC(RHeap*);
1.44 +
1.45 + void LoadRasterizersL();
1.46 +
1.47 +private:
1.48 +
1.49 + CTIsolatedFontStore();
1.50 + CTIsolatedFontStore(RHeap* aHeap);
1.51 + void ConstructL();
1.52 + void ListImplementationsWithRetry(TUid& aInterfaceUid, RImplInfoPtrArray &aImplementationArray, TBool aRomOnly);
1.53 + void SafeInstallOfRasterizerL(TUid aInterfaceImplUid);
1.54 +
1.55 +public:
1.56 + CFontStore* iFs;
1.57 +private:
1.58 + RHeap* iHeap;
1.59 +
1.60 + // Indicate the ownership of iHeap.
1.61 + // ETrue means iHeap is allocated in ConstructL() and owned by CTIsolatedFontStore in current process;
1.62 + // EFalse means iHeap is a pointer to a heap which is passed in as parameter. Do not take ownership.
1.63 + TBool iIsHeapOwner;
1.64 + };
1.65 +
1.66 +#endif // TISOLATEDFONTSTORE_H