equal
deleted
inserted
replaced
125 * Gets the URI of the current video |
125 * Gets the URI of the current video |
126 * |
126 * |
127 */ |
127 */ |
128 void getFileUri(); |
128 void getFileUri(); |
129 |
129 |
130 |
|
131 /** |
130 /** |
132 * Signaled when short details are ready. |
131 * Signaled when short details are ready. |
133 * |
132 * |
134 * @param id Mpx id of the clip, needed when getting the data from model. |
133 * @param id Mpx id of the clip, needed when getting the data from model. |
135 */ |
134 */ |
191 void thumbnailReadySlot(QPixmap pixmap, void * clientData, int id, int errorCode); |
190 void thumbnailReadySlot(QPixmap pixmap, void * clientData, int id, int errorCode); |
192 |
191 |
193 private: |
192 private: |
194 |
193 |
195 /** |
194 /** |
196 * Pre-creates the view and thumbnailmanager. |
|
197 * |
|
198 */ |
|
199 void preCreateView(); |
|
200 |
|
201 /** |
|
202 * Allocates view and rest of it's objects to be ready to |
|
203 * be activated. |
|
204 * |
|
205 */ |
|
206 void finalizeCreateView(); |
|
207 |
|
208 /** |
|
209 * Signaled for one item deletion. |
195 * Signaled for one item deletion. |
210 * |
196 * |
211 */ |
197 */ |
212 void deleteItem(QModelIndex index); |
198 void deleteItem(QModelIndex index); |
213 |
199 |
214 /** |
200 /** |
215 * Starts fetching the large thumbnail with tnwrapper. |
201 * Starts fetching the large thumbnail with tnwrapper. |
216 */ |
202 */ |
217 void startFetchingThumbnail(); |
203 void startFetchingThumbnail(); |
|
204 |
|
205 /** |
|
206 * Gets the play icon for thumbnail. |
|
207 */ |
|
208 const QPixmap &playIcon(); |
218 |
209 |
219 /** |
210 /** |
220 * Finds and return the widget from document loader with the given name. Casts |
211 * Finds and return the widget from document loader with the given name. Casts |
221 * to templated type. |
212 * to templated type. |
222 * |
213 * |
230 T* findObject(QString name); |
221 T* findObject(QString name); |
231 |
222 |
232 private: |
223 private: |
233 |
224 |
234 /** |
225 /** |
235 * Details view create status |
|
236 */ |
|
237 enum TViewStatus |
|
238 { |
|
239 ENotCreated, |
|
240 EPreCreated, |
|
241 EFinalized |
|
242 }; |
|
243 |
|
244 /** |
|
245 * Document loader that holds the view object |
226 * Document loader that holds the view object |
246 */ |
227 */ |
247 HbDocumentLoader mView; |
228 HbDocumentLoader mLoader; |
248 |
229 |
249 /** |
230 /** |
250 * Pointer to the model that holds video details. Not owned. |
231 * Pointer to the model that holds video details. Not owned. |
251 */ |
232 */ |
252 VideoSortFilterProxyModel* mModel; |
233 VideoSortFilterProxyModel* mModel; |
266 * Boolean for knowing when the app was started as a service. |
247 * Boolean for knowing when the app was started as a service. |
267 */ |
248 */ |
268 bool mIsService; |
249 bool mIsService; |
269 |
250 |
270 /** |
251 /** |
271 * Details view create status, |
|
272 * if ENotCreated, view has not been created, |
|
273 * if EPreCreated, view has been pre created |
|
274 * if EFinalized, view creation has been finalised |
|
275 */ |
|
276 TViewStatus mCreated; |
|
277 |
|
278 /** |
|
279 * Mpx id of the video clip. |
252 * Mpx id of the video clip. |
280 */ |
253 */ |
281 TMPXItemId mVideoId; |
254 TMPXItemId mVideoId; |
282 |
255 |
283 /** |
256 /** |
284 * Index of the clip to be deleted in the proxy model. |
257 * Index of the clip to be deleted in the proxy model. |
285 */ |
258 */ |
286 int mDeletedIndex; |
259 int mDeletedIndex; |
|
260 |
|
261 /** |
|
262 * Previously loaded orientation. |
|
263 */ |
|
264 Qt::Orientation mPreviousOrietation; |
287 |
265 |
288 /** |
266 /** |
289 * Navigation softkey action object for back. |
267 * Navigation softkey action object for back. |
290 */ |
268 */ |
291 HbAction *mNavKeyBackAction; |
269 HbAction *mNavKeyBackAction; |
292 |
270 |
293 /** |
271 /** |
294 * Title animation widget |
272 * Title animation widget |
295 */ |
273 */ |
296 HbMarqueeItem *mTitleAnim; |
274 HbMarqueeItem *mTitleAnim; |
307 |
285 |
308 /** |
286 /** |
309 * Collection wrapper. |
287 * Collection wrapper. |
310 */ |
288 */ |
311 VideoCollectionWrapper &mCollectionWrapper; |
289 VideoCollectionWrapper &mCollectionWrapper; |
312 |
290 |
|
291 /** |
|
292 * Play icon with transparent background. |
|
293 */ |
|
294 QPixmap mPlayIcon; |
313 }; |
295 }; |
314 |
296 |
315 #endif // VIDEOFILEDETAILSPLUGIN_H |
297 #endif // VIDEOFILEDETAILSPLUGIN_H |
316 |
298 |
317 // End of File |
299 // End of File |