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: 1 % |
|
19 |
|
20 |
|
21 |
|
22 #include <hbslider.h> |
|
23 #include <hbaction.h> |
|
24 #include <hbiconitem.h> |
|
25 #include <hbpushbutton.h> |
|
26 |
|
27 #include "mpxvideo_debug.h" |
|
28 #include "mpxvideoplaybackbuttonbar.h" |
|
29 #include "mpxcommonvideoplaybackview.hrh" |
|
30 #include "mpxvideoplaybackcontrolscontroller.h" |
|
31 |
|
32 |
|
33 // ------------------------------------------------------------------------------------------------- |
|
34 // QMPXVideoPlaybackButtonBar::QMPXVideoPlaybackButtonBar() |
|
35 // ------------------------------------------------------------------------------------------------- |
|
36 // |
|
37 QMPXVideoPlaybackButtonBar::QMPXVideoPlaybackButtonBar( |
|
38 QMPXVideoPlaybackControlsController* controller ) |
|
39 : mController( controller ) |
|
40 , mInitialized( false ) |
|
41 { |
|
42 MPX_ENTER_EXIT(_L("QMPXVideoPlaybackButtonBar::QMPXVideoPlaybackButtonBar")); |
|
43 } |
|
44 |
|
45 // ------------------------------------------------------------------------------------------------- |
|
46 // QMPXVideoPlaybackButtonBar::~QMPXVideoPlaybackButtonBar() |
|
47 // ------------------------------------------------------------------------------------------------- |
|
48 // |
|
49 QMPXVideoPlaybackButtonBar::~QMPXVideoPlaybackButtonBar() |
|
50 { |
|
51 MPX_DEBUG(_L("QMPXVideoPlaybackButtonBar::~QMPXVideoPlaybackButtonBar()")); |
|
52 } |
|
53 |
|
54 |
|
55 // ------------------------------------------------------------------------------------------------- |
|
56 // QMPXVideoPlaybackButtonBar::updateState() |
|
57 // ------------------------------------------------------------------------------------------------- |
|
58 // |
|
59 void QMPXVideoPlaybackButtonBar::updateState( TMPXPlaybackState state ) |
|
60 { |
|
61 MPX_DEBUG(_L("QMPXVideoPlaybackButtonBar::updateState() state = %d"), state ); |
|
62 mState = state; |
|
63 } |
|
64 |
|
65 // ------------------------------------------------------------------------------------------------- |
|
66 // QMPXVideoPlaybackButtonBar::aspectRatioChanged() |
|
67 // ------------------------------------------------------------------------------------------------- |
|
68 // |
|
69 void QMPXVideoPlaybackButtonBar::aspectRatioChanged( int aspectRatio ) |
|
70 { |
|
71 MPX_DEBUG(_L("QMPXVideoPlaybackButtonBar::aspectRatioChanged() aspectRatio = %d"), aspectRatio ); |
|
72 |
|
73 mAspectRatio = aspectRatio; |
|
74 } |
|
75 |
|
76 // ------------------------------------------------------------------------------------------------- |
|
77 // QMPXVideoPlaybackButtonBar::updateWithFileDetails() |
|
78 // ------------------------------------------------------------------------------------------------- |
|
79 // |
|
80 void QMPXVideoPlaybackButtonBar::updateWithFileDetails( |
|
81 QMPXVideoPlaybackViewFileDetails* details ) |
|
82 { |
|
83 MPX_DEBUG(_L("QMPXVideoPlaybackButtonBar::updateWithFileDetails()")); |
|
84 |
|
85 mShowPauseButton = details->mPausableStream; |
|
86 } |
|
87 |
|
88 //End of file |
|