sl@0: // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef FBSBITMAPASYNCSTREAMER_H sl@0: #define FBSBITMAPASYNCSTREAMER_H sl@0: sl@0: /** sl@0: @file sl@0: @internalComponent sl@0: @released sl@0: */ sl@0: sl@0: const TUint32 KFontBitmapServerUidValue = 0x10003a16; sl@0: const TUid KFontBitmapServerUid = { KFontBitmapServerUidValue }; sl@0: sl@0: class RFbsSession; sl@0: class CDirectFileStore; sl@0: sl@0: /** sl@0: @deprecated sl@0: */ sl@0: class CFbsBitmapAsyncStreamer : public CBase sl@0: { sl@0: public: sl@0: enum TMode {ELoad, ESave}; sl@0: public: sl@0: IMPORT_C ~CFbsBitmapAsyncStreamer(); sl@0: IMPORT_C static CFbsBitmapAsyncStreamer* NewL(TMode aMode); sl@0: IMPORT_C TInt Load(const TDesC& aFilename,TInt32 aId,TInt& aScanLines); sl@0: IMPORT_C TBool LoadScanLinesL(TInt aNumberOfScanLines,CFbsBitmap*& aBitmap); sl@0: IMPORT_C TInt Save(const TDesC& aFilename,CFbsBitmap* aBitmap,TInt32& aId,TInt& aScanLines); sl@0: IMPORT_C TBool SaveScanLinesL(TInt aNumberOfScanLines); sl@0: private: sl@0: CFbsBitmapAsyncStreamer(TMode aMode); sl@0: void ConstructL(); sl@0: void DoLoadL(const TDesC& aFilename,TInt32 aId); sl@0: void DoSaveL(RFile& aFile); sl@0: private: sl@0: RFbsSession* iFbs; sl@0: RStoreReadStream iReadStream; sl@0: RStoreWriteStream iWriteStream; sl@0: TStreamId iId; sl@0: CDirectFileStore* iStore; sl@0: TInt iCurrentScanLine; sl@0: TUint32* iScanLineBase; sl@0: CFbsBitmap* iBitmap; sl@0: SEpocBitmapHeader iHeader; sl@0: TDisplayMode iDispMode; sl@0: TMode iMode; sl@0: }; sl@0: sl@0: #endif // FBSBITMAPASYNCSTREAMER_H