|
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: Juha Kauppinen, Mika Hokkanen |
|
13 * |
|
14 * Description: Photo Browser |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __IEIMAGEPROCESSINGIMP_H__ |
|
19 #define __IEIMAGEPROCESSINGIMP_H__ |
|
20 |
|
21 #include <IEBgpsInfo.h> |
|
22 |
|
23 #include <IEImageProcessing.h> |
|
24 |
|
25 #include "IEImagicBGPSAO.h" |
|
26 |
|
27 // Include files |
|
28 |
|
29 #include "IEBgpClient.h" |
|
30 |
|
31 class CImagicBGPSAO; |
|
32 // Forward class declarations |
|
33 |
|
34 /** |
|
35 * Thumbnail generation implementation class. |
|
36 */ |
|
37 class CIEImageProcessingImp : public CIEImageProcessing,public MIETNInternalObserver |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * Symbian 1st Phase construction. |
|
42 * Creation implementatation class. |
|
43 * |
|
44 * @param aObserver - Thumbnail Observer |
|
45 */ |
|
46 static CIEImageProcessingImp* NewL(MIETNObserver& aObserver); |
|
47 /** |
|
48 * Destructor. |
|
49 * |
|
50 */ |
|
51 ~CIEImageProcessingImp(); |
|
52 private: |
|
53 void ConstructL(); |
|
54 CIEImageProcessingImp(MIETNObserver& aObserver); |
|
55 |
|
56 private: // from MIETNInternalObserver |
|
57 /** |
|
58 * When Thumbnail generation is completed this method is |
|
59 * called. |
|
60 * |
|
61 * @param aErrorCode - KErrNone in case of no error otherwise |
|
62 * - System wide error code |
|
63 */ |
|
64 void HandleEvents(TInt aErrorCode); |
|
65 |
|
66 private: // From CIEImageProcessing |
|
67 void GenerateTN(const TDesC& aMGDir, const TDesC& aTNDir); |
|
68 void GenerateTN(const TDesC& aMGDir, const TDesC& aTNDir, const TSize &aSize); |
|
69 void GenerateTN(const TDesC& aMGDir, const TDesC& aTNDir, const TSize &aSize, CFbsBitmap* aSrcBitmap); |
|
70 void CancelTNGeneration(); |
|
71 |
|
72 private: // Data members |
|
73 /** Observer reference **/ |
|
74 MIETNObserver& iObserver; |
|
75 /** Client **/ |
|
76 RIEBgpClient iIEBgpClient; |
|
77 /** TNCreation Active object pointer **/ |
|
78 CImagicBGPSAO *iImagicBGPSAO; |
|
79 }; |
|
80 |
|
81 #endif // __IEIMAGEPROCESSINGIMP_H__ |