|
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 QMPXVideoPlaybackToolBar |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 |
|
21 |
|
22 #include <hbpushbutton.h> |
|
23 |
|
24 #include "mpxvideo_debug.h" |
|
25 #include "mpxvideoplaybacktoolbar.h" |
|
26 #include "mpxvideoplaybackviewfiledetails.h" |
|
27 #include "mpxcommonvideoplaybackview.hrh" |
|
28 |
|
29 |
|
30 // ------------------------------------------------------------------------------------------------- |
|
31 // QMPXVideoPlaybackToolBar::QMPXVideoPlaybackToolBar() |
|
32 // ------------------------------------------------------------------------------------------------- |
|
33 // |
|
34 QMPXVideoPlaybackToolBar::QMPXVideoPlaybackToolBar( |
|
35 QMPXVideoPlaybackControlsController* controller ) |
|
36 : mController( controller ) |
|
37 { |
|
38 MPX_ENTER_EXIT(_L("QMPXVideoPlaybackToolBar::QMPXVideoPlaybackToolBar")); |
|
39 } |
|
40 |
|
41 // ------------------------------------------------------------------------------------------------- |
|
42 // QMPXVideoPlaybackToolBar::~QMPXVideoPlaybackToolBar() |
|
43 // ------------------------------------------------------------------------------------------------- |
|
44 // |
|
45 QMPXVideoPlaybackToolBar::~QMPXVideoPlaybackToolBar() |
|
46 { |
|
47 MPX_DEBUG(_L("QMPXVideoPlaybackToolBar::~QMPXVideoPlaybackToolBar()")); |
|
48 } |
|
49 |
|
50 // ------------------------------------------------------------------------------------------------- |
|
51 // QMPXVideoPlaybackToolBar::initialize() |
|
52 // ------------------------------------------------------------------------------------------------- |
|
53 // |
|
54 void QMPXVideoPlaybackToolBar::initialize() |
|
55 { |
|
56 MPX_ENTER_EXIT(_L("QMPXVideoPlaybackToolBar::initialize()")); |
|
57 } |
|
58 |
|
59 // ------------------------------------------------------------------------------------------------- |
|
60 // QMPXVideoPlaybackToolBar::updateState() |
|
61 // ------------------------------------------------------------------------------------------------- |
|
62 // |
|
63 void QMPXVideoPlaybackToolBar::updateState( TMPXPlaybackState state ) |
|
64 { |
|
65 MPX_DEBUG(_L("QMPXVideoPlaybackToolBar::updateState() state = %d"), state ); |
|
66 |
|
67 mState = state; |
|
68 } |
|
69 |
|
70 // ------------------------------------------------------------------------------------------------- |
|
71 // QMPXVideoPlaybackToolBar::aspectRatioChanged() |
|
72 // ------------------------------------------------------------------------------------------------- |
|
73 // |
|
74 void QMPXVideoPlaybackToolBar::aspectRatioChanged( int aspectRatio ) |
|
75 { |
|
76 MPX_DEBUG(_L("QMPXVideoPlaybackToolBar::aspectRatioChanged() aspectRatio = %d"), aspectRatio ); |
|
77 |
|
78 mAspectRatio = aspectRatio; |
|
79 } |
|
80 |
|
81 // ------------------------------------------------------------------------------------------------- |
|
82 // QMPXVideoPlaybackToolBar::updateWithFileDetails() |
|
83 // ------------------------------------------------------------------------------------------------- |
|
84 // |
|
85 void QMPXVideoPlaybackToolBar::updateWithFileDetails( |
|
86 QMPXVideoPlaybackViewFileDetails* details ) |
|
87 { |
|
88 MPX_DEBUG(_L("QMPXVideoPlaybackToolBar::updateWithFileDetails()")); |
|
89 |
|
90 mFileDetails = details; |
|
91 } |
|
92 |
|
93 // ------------------------------------------------------------------------------------------------- |
|
94 // QMPXVideoPlaybackToolBar::durationChanged |
|
95 // ------------------------------------------------------------------------------------------------- |
|
96 // |
|
97 void QMPXVideoPlaybackToolBar::durationChanged( int duration ) |
|
98 { |
|
99 MPX_DEBUG(_L("QMPXVideoPlaybackToolBar::durationChanged duration = %d"), duration ); |
|
100 |
|
101 mDuration = duration; |
|
102 } |
|
103 |
|
104 // ------------------------------------------------------------------------------------------------- |
|
105 // QMPXVideoPlaybackToolBar::positionChanged |
|
106 // ------------------------------------------------------------------------------------------------- |
|
107 // |
|
108 void QMPXVideoPlaybackToolBar::positionChanged( int position ) |
|
109 { |
|
110 MPX_DEBUG(_L("QMPXVideoPlaybackToolBar::positionChanged position = %d"), position ); |
|
111 |
|
112 mPosition = position; |
|
113 } |
|
114 |
|
115 // ------------------------------------------------------------------------------------------------- |
|
116 // QMPXVideoPlaybackToolBar::setVisible |
|
117 // ------------------------------------------------------------------------------------------------- |
|
118 // |
|
119 void QMPXVideoPlaybackToolBar::setVisible( bool visible ) |
|
120 { |
|
121 MPX_DEBUG(_L("QMPXVideoPlaybackToolBar::setVisible position = %d"), visible ); |
|
122 |
|
123 mVisible = visible; |
|
124 } |
|
125 |
|
126 //End of file |