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