fbs/fontandbitmapserver/sfbs/fbshelper.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __FBSHELPER_H__
       
    17 #define __FBSHELPER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <fbs.h>
       
    21 
       
    22 
       
    23 class CFbsRasterizer;
       
    24 
       
    25 /**
       
    26 @internalComponent
       
    27 */
       
    28 NONSHARABLE_CLASS(CFbsSessionHelper) : public CActive
       
    29 	{
       
    30 public:
       
    31 	CFbsSessionHelper(RFbsSession& aFbs);
       
    32 	~CFbsSessionHelper();
       
    33 	TInt AddBitmap(CFbsBitmap& aBitmap);
       
    34 	void RemoveBitmap(CFbsBitmap& aBitmap);
       
    35 	inline CFbsRasterizer* Rasterizer() const;
       
    36 
       
    37 private:
       
    38 	void RunL();
       
    39 	void DoCancel();
       
    40 
       
    41 private:
       
    42 	RFbsSession& iFbs;
       
    43 	RPointerArray<CFbsBitmap> iBitmaps;
       
    44 #ifdef __WINS__
       
    45 	RLibrary iRasterizerLib;
       
    46 #endif
       
    47 	CFbsRasterizer* iRasterizer;
       
    48 
       
    49 public:
       
    50 #ifdef SYMBIAN_DEBUG_FBS_LOCKHEAP
       
    51 	RMutex iDebugMutex;
       
    52 #endif
       
    53 	HBufC8* iExtraBuffer;
       
    54 	TInt iServerSessionHandle;
       
    55 	};
       
    56 
       
    57 
       
    58 inline CFbsRasterizer* CFbsSessionHelper::Rasterizer() const
       
    59 	{
       
    60 	return iRasterizer;
       
    61 	}
       
    62 
       
    63 
       
    64 #endif // __FBSHELPER_H__