os/graphics/fbs/fontandbitmapserver/sfbs/fbsbitmapasyncstreamer.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1995-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 FBSBITMAPASYNCSTREAMER_H
    17 #define FBSBITMAPASYNCSTREAMER_H
    18 
    19 /**
    20 @file
    21 @internalComponent
    22 @released
    23  */
    24 
    25 const TUint32 KFontBitmapServerUidValue = 0x10003a16;
    26 const TUid KFontBitmapServerUid = { KFontBitmapServerUidValue };
    27 
    28 class RFbsSession;
    29 class CDirectFileStore;
    30 
    31 /**
    32 @deprecated
    33 */
    34 class CFbsBitmapAsyncStreamer : public CBase
    35 	{
    36 public:
    37 	enum TMode {ELoad, ESave};
    38 public:
    39 	IMPORT_C ~CFbsBitmapAsyncStreamer();
    40 	IMPORT_C static CFbsBitmapAsyncStreamer* NewL(TMode aMode);
    41 	IMPORT_C TInt Load(const TDesC& aFilename,TInt32 aId,TInt& aScanLines);
    42 	IMPORT_C TBool LoadScanLinesL(TInt aNumberOfScanLines,CFbsBitmap*& aBitmap);
    43 	IMPORT_C TInt Save(const TDesC& aFilename,CFbsBitmap* aBitmap,TInt32& aId,TInt& aScanLines);
    44 	IMPORT_C TBool SaveScanLinesL(TInt aNumberOfScanLines);
    45 private:
    46 	CFbsBitmapAsyncStreamer(TMode aMode);
    47 	void ConstructL();
    48 	void DoLoadL(const TDesC& aFilename,TInt32 aId);
    49 	void DoSaveL(RFile& aFile);
    50 private:
    51 	RFbsSession* iFbs;
    52 	RStoreReadStream iReadStream;
    53 	RStoreWriteStream iWriteStream;
    54 	TStreamId iId;
    55 	CDirectFileStore* iStore;
    56 	TInt iCurrentScanLine;
    57 	TUint32* iScanLineBase;
    58 	CFbsBitmap* iBitmap;
    59 	SEpocBitmapHeader iHeader;
    60 	TDisplayMode iDispMode;
    61 	TMode iMode;
    62 	};
    63 
    64 #endif // FBSBITMAPASYNCSTREAMER_H