videoplayback/hbvideoplaybackview/tsrc/testmpxvideoviewwrapper/stub/inc/mpxvideoplaybackcontrolscontroller.h
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     1 /*
       
     2 * Copyright (c) 2009 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 MPXVideoPlaybackControlsController
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: 7 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
       
    23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
       
    24 
       
    25 // INCLUDES
       
    26 #include <qobject>
       
    27 
       
    28 #include "mpxvideo_debug.h"
       
    29 #include "mpxvideoplaybackcontrol.hrh"
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CMPXVideoViewWrapper;
       
    33 class HbVideoBasePlaybackView;
       
    34 class QMPXVideoPlaybackControlsController;
       
    35 class QMPXVideoPlaybackViewFileDetails;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 class QMPXVideoPlaybackControlsController : public QObject
       
    40 {
       
    41     Q_OBJECT
       
    42 
       
    43     public:
       
    44 
       
    45         /**
       
    46         * constructor.
       
    47         */
       
    48         QMPXVideoPlaybackControlsController(
       
    49                 HbVideoBasePlaybackView *view,
       
    50                 CMPXVideoViewWrapper *viewWrapper,
       
    51                 QMPXVideoPlaybackViewFileDetails *details );
       
    52 
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         virtual ~QMPXVideoPlaybackControlsController();
       
    57 
       
    58     public:
       
    59 
       
    60         //
       
    61         //  Handle event from container
       
    62         //
       
    63         void handleEvent( TMPXVideoPlaybackControlCommandIds event, int value = 0 );
       
    64 
       
    65         //
       
    66         //  Add the file details to the controls controller when available
       
    67         //
       
    68         void addFileDetails( QMPXVideoPlaybackViewFileDetails* details );
       
    69 
       
    70         //
       
    71         //  updateVideoRectDone
       
    72         //
       
    73         void updateVideoRectDone();
       
    74 
       
    75         bool isRNLogoBitmapInControlList();
       
    76 
       
    77     public:
       
    78         HbVideoBasePlaybackView                   *mView;
       
    79         CMPXVideoViewWrapper                      *mViewWrapper;
       
    80         QMPXVideoPlaybackViewFileDetails          *mFileDetails;
       
    81         TMPXVideoPlaybackControlCommandIds         mReceivedEvent;
       
    82 
       
    83         int   mValue;
       
    84         bool  mRNLogoVisible;
       
    85         bool  mFileDetailsAdded;
       
    86 };
       
    87 
       
    88 #endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_P_H_*/
       
    89 
       
    90 // End of File