|
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 __IEIMAGEPROCESSING_H__ |
|
19 #define __IEIMAGEPROCESSING_H__ |
|
20 |
|
21 // Include files |
|
22 #include <e32base.h> |
|
23 #include "IEBgpsInfo.h" |
|
24 #include "IEImageData.h" |
|
25 #include <FBS.H> //CFbsBitmap |
|
26 |
|
27 // Forward class declarations |
|
28 |
|
29 /** |
|
30 * Observer class. Provides the interface functions |
|
31 * |
|
32 */ |
|
33 class MIETNObserver |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * When Thumbnail Genration is completed IEBGPS client |
|
38 * call this function. |
|
39 * |
|
40 * @param aErrorCode - Systemwide error code in case of error |
|
41 * - KErrNone in case of no errors. |
|
42 */ |
|
43 virtual void ThumbnailGenerationCompleted(TInt aErrorCode) = 0; |
|
44 virtual void ThumbnailGenerationCancelled(TInt aErrorCode) = 0; |
|
45 |
|
46 /** |
|
47 * When Thumbnail Genration is completed IEBGPS client |
|
48 * calls this function. |
|
49 * |
|
50 * @param aErrorCode - Systemwide error code in case of error |
|
51 * - KErrNone in case of no errors. |
|
52 */ |
|
53 virtual void HandleError(TInt aError) = 0; |
|
54 |
|
55 }; |
|
56 |
|
57 /** |
|
58 * Thumbnail generation class. |
|
59 */ |
|
60 class CIEImageProcessing : public CBase |
|
61 { |
|
62 public: |
|
63 /** |
|
64 * Symbian First phase constructor to create Imageprocessing Object |
|
65 * |
|
66 * @param aObserver - Thumbnail observer |
|
67 */ |
|
68 IMPORT_C static CIEImageProcessing* NewL(MIETNObserver& aObserver); |
|
69 |
|
70 /** |
|
71 * Overloaded function generates Thumbnails. |
|
72 * |
|
73 * @Param aMGDir - Jpeg File with absolute path. |
|
74 * @parama aTNDir - Thumbnail file name with abolutepath |
|
75 */ |
|
76 IMPORT_C virtual void GenerateTN(const TDesC& aMGDir, const TDesC& aTNDir) = 0; |
|
77 /** |
|
78 * Overloaded function generates Thumbnails. |
|
79 * |
|
80 * @Param aMGDir - Jpeg File with absolute path. |
|
81 * @param aImageArrary aTNDir - Thumbnail file name with abolutepath |
|
82 * @Param aSize - Thumbnail size. |
|
83 */ |
|
84 IMPORT_C virtual void GenerateTN(const TDesC& aMGDir, const TDesC& aTNDir, const TSize &aSize) = 0; |
|
85 |
|
86 IMPORT_C virtual void GenerateTN(const TDesC& aMGDir, const TDesC& aTNDir, const TSize &aSize, CFbsBitmap* aSrcBitmap) = 0; |
|
87 |
|
88 IMPORT_C virtual void CancelTNGeneration() = 0; |
|
89 |
|
90 }; |
|
91 |
|
92 #endif // __IEIMAGEPROCESSING_H__ |