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