equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
35 class CVcxHgMyVideosVideoDataUpdater; |
35 class CVcxHgMyVideosVideoDataUpdater; |
36 class CVcxHgMyVideosDownloadUpdater; |
36 class CVcxHgMyVideosDownloadUpdater; |
37 class TVcxHgMyVideosVideoDetailsDialog; |
37 class TVcxHgMyVideosVideoDetailsDialog; |
38 class CVcxHgMyVideosVideoList; |
38 class CVcxHgMyVideosVideoList; |
39 class CHgScroller; |
39 class CHgScroller; |
40 class TVideoPlayerCustomMessage; |
|
41 class CMyVideosIndicator; |
40 class CMyVideosIndicator; |
42 |
41 |
43 // CLASS DECLARATION |
42 // CLASS DECLARATION |
44 |
43 |
45 /** |
44 /** |
167 * Handles mark command to video list. |
166 * Handles mark command to video list. |
168 * |
167 * |
169 * @param aMarkCommand Mark command. |
168 * @param aMarkCommand Mark command. |
170 */ |
169 */ |
171 void HandleMarkCommandL( TInt aMarkCommand ); |
170 void HandleMarkCommandL( TInt aMarkCommand ); |
172 |
|
173 /** |
|
174 * Returns last playback position of video, video identified by URI. |
|
175 * |
|
176 * @param aContentUri URL or path to video. |
|
177 * @return Last playback position. |
|
178 */ |
|
179 TInt LastPlaybackPosition( const TDesC& aContentUri ); |
|
180 |
|
181 /** |
|
182 * Stores last playback position of video, video identified by URI. |
|
183 * |
|
184 * @param aContentUri URL or path to video. |
|
185 * @param aPosition Last playback position. |
|
186 */ |
|
187 void SetLastPlaybackPositionL( const TDesC& aContentUri, TInt aPosition ); |
|
188 |
171 |
189 /** |
172 /** |
190 * Returns video's name. |
173 * Returns video's name. |
191 * |
174 * |
192 * @param aIndex Video's index on UI list. |
175 * @param aIndex Video's index on UI list. |
246 * Cancels a video download from requested index. |
229 * Cancels a video download from requested index. |
247 * |
230 * |
248 * @param aIndex Video's index on UI list. |
231 * @param aIndex Video's index on UI list. |
249 */ |
232 */ |
250 void CancelDownloadL( TInt aIndex ); |
233 void CancelDownloadL( TInt aIndex ); |
251 |
|
252 /** |
|
253 * Returns Video Player custom message of a video. |
|
254 * |
|
255 * @param aFilteredIndex Video's index on filtered UI list. |
|
256 * @param aVideoInfo On return, Video Player custom message with video information. |
|
257 * @param aMpxId1 On return, MPX ID 1 of the video. |
|
258 */ |
|
259 TInt GetVideoPlayerCustomMessage( TInt aFilteredIndex, |
|
260 TVideoPlayerCustomMessage& aVideoInfo, |
|
261 TInt& aMpxId1 ); |
|
262 |
|
263 /** |
|
264 * Returns Video Player custom message of a video. |
|
265 * |
|
266 * @param aMpxItemId MPX Item Id of the video. |
|
267 * @param aVideoInfo On return, Video Player custom message with video information. |
|
268 */ |
|
269 TInt GetVideoPlayerCustomMessage( TMPXItemId& aMpxItemId, |
|
270 TVideoPlayerCustomMessage& aVideoInfo ); |
|
271 |
234 |
272 /** |
235 /** |
273 * Returns age profile of a video. |
236 * Returns age profile of a video. |
274 * |
237 * |
275 * @param aIndex Video's index on UI list. |
238 * @param aIndex Video's index on UI list. |
301 * @return ETrue if video was found. |
264 * @return ETrue if video was found. |
302 */ |
265 */ |
303 TBool FindVideoMpxIdL( const TDesC& aVideoPath, TMPXItemId& aMpxItemId ); |
266 TBool FindVideoMpxIdL( const TDesC& aVideoPath, TMPXItemId& aMpxItemId ); |
304 |
267 |
305 /** |
268 /** |
306 * Informative call about video being played. Method removes possible new |
|
307 * indicator from video. |
|
308 * |
|
309 * @param aIndex Video's index on UI list. |
|
310 */ |
|
311 void ClearNewVideoIndicatorL( TInt aIndex ); |
|
312 |
|
313 /** |
|
314 * Informative call about video being played. Method removes possible new |
|
315 * indicator from video. |
|
316 * |
|
317 * @param aMpxItemId Video's MPX item Id. |
|
318 */ |
|
319 void ClearNewVideoIndicatorL( TMPXItemId& aMpxItemId ); |
|
320 |
|
321 /** |
|
322 * Gets data of currently highlighted video, and passes it to |
269 * Gets data of currently highlighted video, and passes it to |
323 * TVcxHgMyVideosVideoDetailsDialog::ShowVideoDetailsDialogL(). |
270 * TVcxHgMyVideosVideoDetailsDialog::ShowVideoDetailsDialogL(). |
324 */ |
271 */ |
325 void ShowVideoDetailsDialogL(); |
272 void ShowVideoDetailsDialogL(); |
326 |
273 |
529 /** |
476 /** |
530 * Update scrollbar strip type depending on sort order |
477 * Update scrollbar strip type depending on sort order |
531 */ |
478 */ |
532 void UpdateScrollbarTypeL( const TVcxMyVideosSortingOrder& aSortingOrder ); |
479 void UpdateScrollbarTypeL( const TVcxMyVideosSortingOrder& aSortingOrder ); |
533 |
480 |
|
481 /** |
|
482 * Resets scroller items for refetch only |
|
483 */ |
|
484 void ResetScrollerItemsL(); |
|
485 |
|
486 /** |
|
487 * Resets scroller buffer and items for refetch |
|
488 * This is fastest way to reset scroller when item count is unchanged |
|
489 */ |
|
490 void ResetScrollerBufferAndItemsL(); |
|
491 |
|
492 /** |
|
493 * Resizes scroller with refetch |
|
494 * This is faster way to reset scroller than CHgScroller::Reset() and |
|
495 * CHgScroller::ResizeL() calls combined |
|
496 * @param aNewItemCount New item count |
|
497 */ |
|
498 void ResizeScrollerL( TInt aNewItemCount ); |
|
499 |
534 private: |
500 private: |
535 |
501 |
536 /** |
502 /** |
537 * Video details dialog. |
503 * Video details dialog. |
538 * Own. |
504 * Own. |