videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackstatuspanecontrol.h
author hgs
Thu, 01 Apr 2010 23:22:15 +0300
changeset 34 bbb98528c666
parent 30 4f111d64a341
child 38 ff53afa8ad05
permissions -rw-r--r--
201009
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 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 QMPXVideoPlaybackStatusPaneControl
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
34
hgs
parents: 30
diff changeset
    18
// Version : %version: 9 %
30
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#ifndef MPXVIDEOPLAYBACKSTATUSPANECONTROL_H_
hgs
parents:
diff changeset
    23
#define MPXVIDEOPLAYBACKSTATUSPANECONTROL_H_
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
#include "mpxvideoplaybackfullscreencontrol.h"
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
class HbLabel;
hgs
parents:
diff changeset
    30
class HbAction;
34
hgs
parents: 30
diff changeset
    31
class HbFrameItem;
30
hgs
parents:
diff changeset
    32
class QMPXVideoPlaybackViewFileDetails;
hgs
parents:
diff changeset
    33
class QMPXVideoPlaybackControlsController;
hgs
parents:
diff changeset
    34
hgs
parents:
diff changeset
    35
class QMPXVideoPlaybackStatusPaneControl : public QMPXVideoPlaybackFullScreenControl
hgs
parents:
diff changeset
    36
{
hgs
parents:
diff changeset
    37
    Q_OBJECT
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
    public:
hgs
parents:
diff changeset
    40
        QMPXVideoPlaybackStatusPaneControl( QMPXVideoPlaybackControlsController* controller, 
hgs
parents:
diff changeset
    41
                                            TMPXVideoPlaybackControls index,
hgs
parents:
diff changeset
    42
                                            HbWidget* widget, 
hgs
parents:
diff changeset
    43
                                            TUint controlproperties );
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
        virtual ~QMPXVideoPlaybackStatusPaneControl();
hgs
parents:
diff changeset
    46
hgs
parents:
diff changeset
    47
    public:
hgs
parents:
diff changeset
    48
hgs
parents:
diff changeset
    49
        /**
hgs
parents:
diff changeset
    50
        * Set visibility of each control
hgs
parents:
diff changeset
    51
        */
hgs
parents:
diff changeset
    52
        void setVisibility( TMPXPlaybackState aState );
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
        /*
hgs
parents:
diff changeset
    55
         *  Update the controls with the file details
hgs
parents:
diff changeset
    56
         */
hgs
parents:
diff changeset
    57
        void updateControlsWithFileDetails( QMPXVideoPlaybackViewFileDetails *details );
hgs
parents:
diff changeset
    58
hgs
parents:
diff changeset
    59
        void setVisible( bool visible );
hgs
parents:
diff changeset
    60
hgs
parents:
diff changeset
    61
        bool isVisible();
hgs
parents:
diff changeset
    62
hgs
parents:
diff changeset
    63
        void setMenu( QMPXVideoPlaybackViewFileDetails* details );
hgs
parents:
diff changeset
    64
hgs
parents:
diff changeset
    65
        void controlListUpdated( QMPXVideoPlaybackViewFileDetails* details );
hgs
parents:
diff changeset
    66
hgs
parents:
diff changeset
    67
    private slots:
hgs
parents:
diff changeset
    68
        void handleAboutToShow();
hgs
parents:
diff changeset
    69
        void handleAboutToHide();
hgs
parents:
diff changeset
    70
        void openFullScreenView();
hgs
parents:
diff changeset
    71
hgs
parents:
diff changeset
    72
    private:
hgs
parents:
diff changeset
    73
        bool                     mVisible;
hgs
parents:
diff changeset
    74
        HbAction                *mActionBack;
hgs
parents:
diff changeset
    75
        HbLabel                 *mTitleLabel;
34
hgs
parents: 30
diff changeset
    76
        HbFrameItem             *mFrameItem;
30
hgs
parents:
diff changeset
    77
};
hgs
parents:
diff changeset
    78
hgs
parents:
diff changeset
    79
#endif /*MPXVIDEOPLAYBACKSTATUSPANECONTROL_H_*/
hgs
parents:
diff changeset
    80