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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef FBSBITMAPASYNCSTREAMER_H
17 #define FBSBITMAPASYNCSTREAMER_H
25 const TUint32 KFontBitmapServerUidValue = 0x10003a16;
26 const TUid KFontBitmapServerUid = { KFontBitmapServerUidValue };
29 class CDirectFileStore;
34 class CFbsBitmapAsyncStreamer : public CBase
37 enum TMode {ELoad, ESave};
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);
46 CFbsBitmapAsyncStreamer(TMode aMode);
48 void DoLoadL(const TDesC& aFilename,TInt32 aId);
49 void DoSaveL(RFile& aFile);
52 RStoreReadStream iReadStream;
53 RStoreWriteStream iWriteStream;
55 CDirectFileStore* iStore;
56 TInt iCurrentScanLine;
57 TUint32* iScanLineBase;
59 SEpocBitmapHeader iHeader;
60 TDisplayMode iDispMode;
64 #endif // FBSBITMAPASYNCSTREAMER_H