35
|
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 |
|
37
|
18 |
// Version : %version: 2 %
|
35
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
#ifndef MPXVIDEOPLAYBACKCONTROLBAR_H_
|
|
23 |
#define MPXVIDEOPLAYBACKCONTROLBAR_H_
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
#include <hbeffect.h>
|
|
28 |
#include <hbwidget.h>
|
|
29 |
#include <mpxplaybackframeworkdefs.h>
|
|
30 |
|
37
|
31 |
class QMPXVideoPlaybackToolBar;
|
35
|
32 |
class QMPXVideoPlaybackProgressBar;
|
|
33 |
class QMPXVideoPlaybackViewFileDetails;
|
|
34 |
class QMPXVideoPlaybackControlsController;
|
|
35 |
|
|
36 |
class QMPXVideoPlaybackControlBar : public HbWidget
|
|
37 |
{
|
|
38 |
Q_OBJECT
|
|
39 |
|
|
40 |
public:
|
|
41 |
QMPXVideoPlaybackControlBar( QMPXVideoPlaybackControlsController* controller );
|
|
42 |
virtual ~QMPXVideoPlaybackControlBar();
|
|
43 |
void updateState( TMPXPlaybackState state );
|
|
44 |
void aspectRatioChanged( int aspectRatio );
|
|
45 |
void initialize();
|
|
46 |
void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details );
|
|
47 |
void setVisibleToControlBar( bool visible );
|
|
48 |
void durationChanged( int duration );
|
|
49 |
void positionChanged( int position );
|
|
50 |
|
|
51 |
private slots:
|
|
52 |
void appeared( const HbEffect::EffectStatus &status );
|
|
53 |
void disappeared( const HbEffect::EffectStatus &status );
|
|
54 |
|
|
55 |
private:
|
|
56 |
QMPXVideoPlaybackControlsController *mController;
|
37
|
57 |
QMPXVideoPlaybackToolBar *mToolBar;
|
35
|
58 |
QMPXVideoPlaybackProgressBar *mProgressBar;
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif /*MPXVIDEOPLAYBACKCONTROLBAR_H_*/
|