videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackcontrolbar.h
author hgs
Fri, 30 Apr 2010 09:52:11 +0300
changeset 37 4eb2df7f7cbe
parent 35 3738fe97f027
child 41 229f037ce963
permissions -rw-r--r--
201017
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Implementation of QMPXVideoPlaybackControlBar
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
37
hgs
parents: 35
diff changeset
    18
// Version : %version: 2 %
35
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#ifndef MPXVIDEOPLAYBACKCONTROLBAR_H_
hgs
parents:
diff changeset
    23
#define MPXVIDEOPLAYBACKCONTROLBAR_H_
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
#include <hbeffect.h>
hgs
parents:
diff changeset
    28
#include <hbwidget.h>
hgs
parents:
diff changeset
    29
#include <mpxplaybackframeworkdefs.h>
hgs
parents:
diff changeset
    30
37
hgs
parents: 35
diff changeset
    31
class QMPXVideoPlaybackToolBar;
35
hgs
parents:
diff changeset
    32
class QMPXVideoPlaybackProgressBar;
hgs
parents:
diff changeset
    33
class QMPXVideoPlaybackViewFileDetails;
hgs
parents:
diff changeset
    34
class QMPXVideoPlaybackControlsController;
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
class QMPXVideoPlaybackControlBar : public HbWidget
hgs
parents:
diff changeset
    37
{
hgs
parents:
diff changeset
    38
    Q_OBJECT
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
    public:
hgs
parents:
diff changeset
    41
        QMPXVideoPlaybackControlBar( QMPXVideoPlaybackControlsController* controller );
hgs
parents:
diff changeset
    42
        virtual ~QMPXVideoPlaybackControlBar();
hgs
parents:
diff changeset
    43
        void updateState( TMPXPlaybackState state );
hgs
parents:
diff changeset
    44
        void aspectRatioChanged( int aspectRatio );
hgs
parents:
diff changeset
    45
        void initialize();
hgs
parents:
diff changeset
    46
        void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details );
hgs
parents:
diff changeset
    47
        void setVisibleToControlBar( bool visible );
hgs
parents:
diff changeset
    48
        void durationChanged( int duration );
hgs
parents:
diff changeset
    49
        void positionChanged( int position );
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
    private slots:
hgs
parents:
diff changeset
    52
        void appeared( const HbEffect::EffectStatus &status );
hgs
parents:
diff changeset
    53
        void disappeared( const HbEffect::EffectStatus &status );
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
    private:
hgs
parents:
diff changeset
    56
        QMPXVideoPlaybackControlsController *mController;
37
hgs
parents: 35
diff changeset
    57
        QMPXVideoPlaybackToolBar            *mToolBar;
35
hgs
parents:
diff changeset
    58
        QMPXVideoPlaybackProgressBar        *mProgressBar;
hgs
parents:
diff changeset
    59
};
hgs
parents:
diff changeset
    60
hgs
parents:
diff changeset
    61
#endif /*MPXVIDEOPLAYBACKCONTROLBAR_H_*/