|
1 /* |
|
2 * Copyright (c) 2009 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GLXIMAGEDECODER_H |
|
20 #define GLXIMAGEDECODER_H |
|
21 #include <QPixmap> |
|
22 #include <f32file.h> |
|
23 #include "glximagedecoderwrapper.h" |
|
24 |
|
25 class GlxImageDecoderWrapper; |
|
26 class CImageDecoder; |
|
27 class CFbsBitmap; |
|
28 |
|
29 class CGlxImageDecoder : public CActive |
|
30 { |
|
31 public: |
|
32 static CGlxImageDecoder* NewL(GlxImageDecoderWrapper* decoderWrapper); |
|
33 ~CGlxImageDecoder(); |
|
34 void DecodeImageL(QString aSourceFileName); |
|
35 QPixmap GetPixmap(); |
|
36 void ResetDecoder(); |
|
37 public: |
|
38 /** |
|
39 * Standard Active object functions |
|
40 * */ |
|
41 virtual void RunL(); |
|
42 virtual void DoCancel(); |
|
43 private: |
|
44 /* |
|
45 * Constructor |
|
46 * */ |
|
47 CGlxImageDecoder(); |
|
48 /* |
|
49 *Second-phase constuction |
|
50 * */ |
|
51 void ConstructL(GlxImageDecoderWrapper* decoderWrapper); |
|
52 |
|
53 private: |
|
54 GlxImageDecoderWrapper* iDecoderWrapper; |
|
55 /*Specifies the Decoder */ |
|
56 CImageDecoder* iImageDecoder; // decoder from ICL API |
|
57 /*Contains the Bitmap generated*/ |
|
58 CFbsBitmap* iBitmap; |
|
59 /*Contains the bitmap in QT format8*/ |
|
60 QPixmap iDecodedPixmap; |
|
61 /*A handle to a file server session.*/ |
|
62 RFs iFs; |
|
63 |
|
64 }; |
|
65 #endif //GLXIMAGEDECODER_H |