|
1 /* |
|
2 * Copyright (c) 2004 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 the License "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 * Declaration of view images popup dialog. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __VIEWIMAGESLISTBOX_H |
|
22 #define __VIEWIMAGESLISTBOX_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <e32def.h> |
|
27 #include <aknpopup.h> |
|
28 #include <aknlists.h> |
|
29 #include <MdaImageConverter.h> |
|
30 |
|
31 // Browser as a Plugin includes |
|
32 #include <BrCtlDialogsProvider.h> |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CCoeControl; |
|
36 class TCoeEvent; |
|
37 class CEikListBox; |
|
38 class TListBoxEvent; |
|
39 class CAknsListBoxBackgroundControlContext; |
|
40 class TBrCtlImageCarrier; |
|
41 class CPhotoOperationWait; |
|
42 |
|
43 // use large icon list box with double item text |
|
44 class CBrowserViewImagesListBox : |
|
45 public CAknDoubleLargeGraphicPopupMenuStyleListBox, |
|
46 public MMdaImageUtilObserver |
|
47 { |
|
48 |
|
49 public: |
|
50 |
|
51 // construction support |
|
52 CBrowserViewImagesListBox(); |
|
53 virtual ~CBrowserViewImagesListBox(); |
|
54 void ConstructL( CCoeControl& aParent, |
|
55 CArrayFixFlat<TBrCtlImageCarrier>& iImages); |
|
56 |
|
57 // start thumbnailing |
|
58 // call just before ExecuteLD() |
|
59 void StartConversionL(); |
|
60 |
|
61 const TBrCtlImageCarrier& CurrentlySelectedImage(); |
|
62 |
|
63 // MMdaImageUtilObserver |
|
64 void MiuoConvertComplete(TInt aError); |
|
65 void MiuoOpenComplete(TInt aError); |
|
66 void MiuoCreateComplete(TInt aError); |
|
67 |
|
68 // leaving versions of used MMdaImageUtilObserver functions |
|
69 void MiuoOpenCompleteL(TInt aError); |
|
70 void MiuoConvertCompleteL(TInt aError); |
|
71 |
|
72 private: |
|
73 |
|
74 CGulIcon* CreatePlaceholderIconL(); |
|
75 CGulIcon* CreateIconL(CFbsBitmap* aBitmap, TBool aShrinkIt=EFalse); |
|
76 |
|
77 void ConvertNextImageL(); |
|
78 void DeleteCurrentBitmap(); |
|
79 TInt CreateCurrentBitmapL(TBool aUseBitmapSize=EFalse); |
|
80 |
|
81 TSize Fit( const TSize& aSrc, const TSize& aTgt ); |
|
82 |
|
83 private: |
|
84 TMdaWbmpClipFormat iFormat; |
|
85 TMdaWbmpCodec iCodec; |
|
86 |
|
87 TUint8* iDRMOutputBuf; // owned |
|
88 TPtrC8 iImageDataPtr; // Raw unconverted image data |
|
89 |
|
90 TFrameInfo iFrameInfo; |
|
91 TBool iRetryingConvert; |
|
92 TInt iImageIndex; // points to the current image in iImages |
|
93 |
|
94 CArrayFixFlat<TBrCtlImageCarrier>* iImages; // not owned |
|
95 CMdaImageDescToBitmapUtility* iConverter; |
|
96 |
|
97 CFbsBitmap* iCurrentBitmap; // NOT DELETED |
|
98 CArrayPtrFlat<CGulIcon>* iIcons; // NOT DELETED |
|
99 CDesCArray* iItemList; // NOT DELETED |
|
100 }; |
|
101 |
|
102 #endif // __VIEWIMAGESLISTBOX_H |
|
103 |
|
104 // End of file |