equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUIBITMAPDECODER_H |
|
21 #define MUSUIBITMAPDECODER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <f32file.h> |
|
25 |
|
26 class MMusUiBitmapDecoderObserver; |
|
27 class CImageDecoder; |
|
28 class CFbsBitmap; |
|
29 |
|
30 class CMusUiBitmapDecoder : public CActive |
|
31 { |
|
32 |
|
33 public: // constructors and destructor |
|
34 |
|
35 /** |
|
36 * Destructor. |
|
37 */ |
|
38 ~CMusUiBitmapDecoder(); |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. Leaves on failure. |
|
42 * @return The constructed CMusUiBitmapDecoder instance. |
|
43 */ |
|
44 static CMusUiBitmapDecoder* NewL( MMusUiBitmapDecoderObserver& aObserver ); |
|
45 |
|
46 private: |
|
47 |
|
48 /** |
|
49 * C++ constructor. |
|
50 */ |
|
51 CMusUiBitmapDecoder( MMusUiBitmapDecoderObserver& aObserver ); |
|
52 |
|
53 /** |
|
54 * Symbian 2nd-phase constructor. |
|
55 */ |
|
56 void ConstructL(); |
|
57 |
|
58 |
|
59 public: // new funtions: |
|
60 |
|
61 void ConvertL( HBufC8* aData, CFbsBitmap* aBitmap ); |
|
62 |
|
63 |
|
64 private: // functions from base class CActive |
|
65 |
|
66 void DoCancel(); |
|
67 |
|
68 void RunL(); |
|
69 |
|
70 private: // Data |
|
71 |
|
72 MMusUiBitmapDecoderObserver& iObserver; |
|
73 |
|
74 CImageDecoder* iDecoder; |
|
75 |
|
76 CFbsBitmap* iBitmap; |
|
77 |
|
78 RFs iFs; |
|
79 |
|
80 HBufC8* iData; |
|
81 }; |
|
82 |
|
83 #endif // MUSUIBITMAPDECODER_H |
|
84 |
|
85 // end of file |