|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
13 * |
|
14 * Description: Implementation of VideoPlaybackProgressBar |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #include "mpxvideo_debug.h" |
|
24 #include "videoplaybackprogressbar.h" |
|
25 #include "videoplaybackcontrolscontroller.h" |
|
26 |
|
27 // ------------------------------------------------------------------------------------------------- |
|
28 // VideoPlaybackProgressBar::VideoPlaybackProgressBar |
|
29 // ------------------------------------------------------------------------------------------------- |
|
30 // |
|
31 VideoPlaybackProgressBar::VideoPlaybackProgressBar( |
|
32 VideoPlaybackControlsController* controller ) |
|
33 : mController( controller ) |
|
34 , mDuration( -1 ) |
|
35 { |
|
36 MPX_ENTER_EXIT(_L("VideoPlaybackProgressBar::VideoPlaybackProgressBar()")); |
|
37 } |
|
38 |
|
39 // ------------------------------------------------------------------------------------------------- |
|
40 // VideoPlaybackProgressBar::~VideoPlaybackProgressBar |
|
41 // ------------------------------------------------------------------------------------------------- |
|
42 // |
|
43 VideoPlaybackProgressBar::~VideoPlaybackProgressBar() |
|
44 { |
|
45 MPX_ENTER_EXIT(_L("VideoPlaybackProgressBar::~VideoPlaybackProgressBar()")); |
|
46 } |
|
47 |
|
48 // ------------------------------------------------------------------------------------------------- |
|
49 // VideoPlaybackProgressBar::initialize |
|
50 // ------------------------------------------------------------------------------------------------- |
|
51 // |
|
52 void VideoPlaybackProgressBar::initialize() |
|
53 { |
|
54 MPX_ENTER_EXIT(_L("VideoPlaybackProgressBar::initialize()")); |
|
55 } |
|
56 |
|
57 // ------------------------------------------------------------------------------------------------- |
|
58 // VideoPlaybackProgressBar::durationChanged |
|
59 // ------------------------------------------------------------------------------------------------- |
|
60 // |
|
61 void VideoPlaybackProgressBar::durationChanged( int duration ) |
|
62 { |
|
63 MPX_DEBUG(_L("VideoPlaybackControlsController::durationChanged duration = %d"), duration ); |
|
64 |
|
65 mDuration = duration; |
|
66 } |
|
67 |
|
68 // ------------------------------------------------------------------------------------------------- |
|
69 // VideoPlaybackProgressBar::positionChanged |
|
70 // ------------------------------------------------------------------------------------------------- |
|
71 // |
|
72 void VideoPlaybackProgressBar::positionChanged( int position ) |
|
73 { |
|
74 MPX_DEBUG(_L("VideoPlaybackControlsController::positionChanged position = %d"), position ); |
|
75 |
|
76 mPosition = position; |
|
77 } |
|
78 |
|
79 // ------------------------------------------------------------------------------------------------- |
|
80 // VideoPlaybackProgressBar::updateWithFileDetails() |
|
81 // ------------------------------------------------------------------------------------------------- |
|
82 // |
|
83 void VideoPlaybackProgressBar::updateWithFileDetails( |
|
84 VideoPlaybackViewFileDetails* details ) |
|
85 { |
|
86 MPX_DEBUG(_L("VideoPlaybackProgressBar::updateControlsWithFileDetails()")); |
|
87 |
|
88 mFileDetails = details; |
|
89 } |
|
90 |
|
91 // ------------------------------------------------------------------------------------------------- |
|
92 // VideoPlaybackProgressBar::updateState() |
|
93 // ------------------------------------------------------------------------------------------------- |
|
94 // |
|
95 void VideoPlaybackProgressBar::updateState( TMPXPlaybackState state ) |
|
96 { |
|
97 MPX_DEBUG(_L("VideoPlaybackProgressBar::updateState() state = %d"), state ); |
|
98 |
|
99 mState = state; |
|
100 } |
|
101 |
|
102 //End of file |