equal
deleted
inserted
replaced
22 |
22 |
23 #include "glxbinding.h" // The binding is created by the binding set factory. |
23 #include "glxbinding.h" // The binding is created by the binding set factory. |
24 #include "glxmedialistiterator.h" // Interface for going through items in the list in a non-sequential order |
24 #include "glxmedialistiterator.h" // Interface for going through items in the list in a non-sequential order |
25 #include "mglxmedialistobserver.h" // Observes for changes in media list |
25 #include "mglxmedialistobserver.h" // Observes for changes in media list |
26 #include <memory> |
26 #include <memory> |
27 |
27 #include <bitmaptransforms.h> |
28 |
28 |
29 class GlxThumbnailVariantType; |
29 class GlxThumbnailVariantType; |
30 class CGlxThumbnailContext; // Fetch context to retrieve thumbnails |
30 class CGlxThumbnailContext; // Fetch context to retrieve thumbnails |
31 |
31 |
32 /** |
32 /** |
76 |
76 |
77 /** |
77 /** |
78 * Two phase construction |
78 * Two phase construction |
79 */ |
79 */ |
80 void ConstructL(); |
80 void ConstructL(); |
|
81 |
|
82 /** |
|
83 * Scale the source bitmap to list size |
|
84 * aSrcBitmap - Source bitmap |
|
85 * aDestBitmap - Scaled destination bitmap |
|
86 */ |
|
87 void ScaleBitmapToListSizeL(CFbsBitmap* aSrcBitmap, CFbsBitmap* aDestBitmap); |
81 |
88 |
82 public: |
89 public: |
83 void HandleItemChangedL(const CMPXCollectionPath& aPath, |
90 void HandleItemChangedL(const CMPXCollectionPath& aPath, |
84 TBool aPopulateListTNs, TBool aBackwardNavigation); |
91 TBool aPopulateListTNs, TBool aBackwardNavigation); |
85 void StartTimer(TBool aPopulateListTNs); |
92 void StartTimer(TBool aPopulateListTNs); |
149 TInt iTrial; |
156 TInt iTrial; |
150 |
157 |
151 TBool iBackwardNavigation; |
158 TBool iBackwardNavigation; |
152 |
159 |
153 CMPXFilter* iPreviewFilter; |
160 CMPXFilter* iPreviewFilter; |
|
161 |
|
162 CBitmapScaler* iBitmapScaler; |
154 }; |
163 }; |
155 |
164 |
|
165 // ---------------------------------------------------------------------------- |
|
166 // CWaitScheduler - Active object to scale the bitmap to the desired size. |
|
167 // ---------------------------------------------------------------------------- |
|
168 class CGlxWaitScheduler : public CActive |
|
169 { |
|
170 public: |
|
171 static CGlxWaitScheduler* NewL(); |
|
172 void WaitForRequest(); |
|
173 |
|
174 private: |
|
175 CGlxWaitScheduler(); |
|
176 void ConstructL(); |
|
177 virtual ~CGlxWaitScheduler(); |
|
178 void RunL(); |
|
179 void DoCancel(); |
|
180 |
|
181 private: |
|
182 CActiveSchedulerWait iScheduler; |
|
183 }; |
156 |
184 |
157 #endif //_GLXPREVIEWTHUMBNAILBINDING_H_ |
185 #endif //_GLXPREVIEWTHUMBNAILBINDING_H_ |