os/graphics/fbs/fontandbitmapserver/sfbs/fbsbitmapasyncstreamer.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/fbs/fontandbitmapserver/sfbs/fbsbitmapasyncstreamer.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,64 @@
     1.4 +// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef FBSBITMAPASYNCSTREAMER_H
    1.20 +#define FBSBITMAPASYNCSTREAMER_H
    1.21 +
    1.22 +/**
    1.23 +@file
    1.24 +@internalComponent
    1.25 +@released
    1.26 + */
    1.27 +
    1.28 +const TUint32 KFontBitmapServerUidValue = 0x10003a16;
    1.29 +const TUid KFontBitmapServerUid = { KFontBitmapServerUidValue };
    1.30 +
    1.31 +class RFbsSession;
    1.32 +class CDirectFileStore;
    1.33 +
    1.34 +/**
    1.35 +@deprecated
    1.36 +*/
    1.37 +class CFbsBitmapAsyncStreamer : public CBase
    1.38 +	{
    1.39 +public:
    1.40 +	enum TMode {ELoad, ESave};
    1.41 +public:
    1.42 +	IMPORT_C ~CFbsBitmapAsyncStreamer();
    1.43 +	IMPORT_C static CFbsBitmapAsyncStreamer* NewL(TMode aMode);
    1.44 +	IMPORT_C TInt Load(const TDesC& aFilename,TInt32 aId,TInt& aScanLines);
    1.45 +	IMPORT_C TBool LoadScanLinesL(TInt aNumberOfScanLines,CFbsBitmap*& aBitmap);
    1.46 +	IMPORT_C TInt Save(const TDesC& aFilename,CFbsBitmap* aBitmap,TInt32& aId,TInt& aScanLines);
    1.47 +	IMPORT_C TBool SaveScanLinesL(TInt aNumberOfScanLines);
    1.48 +private:
    1.49 +	CFbsBitmapAsyncStreamer(TMode aMode);
    1.50 +	void ConstructL();
    1.51 +	void DoLoadL(const TDesC& aFilename,TInt32 aId);
    1.52 +	void DoSaveL(RFile& aFile);
    1.53 +private:
    1.54 +	RFbsSession* iFbs;
    1.55 +	RStoreReadStream iReadStream;
    1.56 +	RStoreWriteStream iWriteStream;
    1.57 +	TStreamId iId;
    1.58 +	CDirectFileStore* iStore;
    1.59 +	TInt iCurrentScanLine;
    1.60 +	TUint32* iScanLineBase;
    1.61 +	CFbsBitmap* iBitmap;
    1.62 +	SEpocBitmapHeader iHeader;
    1.63 +	TDisplayMode iDispMode;
    1.64 +	TMode iMode;
    1.65 +	};
    1.66 +
    1.67 +#endif // FBSBITMAPASYNCSTREAMER_H