videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/stub/inc/mpxvideoplaybackcontrolconfiguration.h
changeset 34 bbb98528c666
child 17 69946d1824c4
equal deleted inserted replaced
33:48e74db5d516 34:bbb98528c666
       
     1 /*
       
     2 * Copyright (c) 20101 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 CMPXVideoPlaybackControlConfiguration
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  1 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_
       
    23 #define MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_
       
    24 
       
    25 // INCLUDES
       
    26 #include <qobject>
       
    27 
       
    28 #include <mpxplaybackframeworkdefs.h>
       
    29 #include "mpxvideoplaybackcontrol.hrh"
       
    30 #include "mpxhelixplaybackplugindefs.h"
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class QMPXVideoPlaybackControlsController;
       
    34 
       
    35 // DATA TYPES
       
    36 
       
    37 // CLASS DECLARATION
       
    38 class QMPXVideoPlaybackControlConfiguration : public QObject
       
    39 {
       
    40     Q_OBJECT
       
    41 
       
    42     public:
       
    43 
       
    44         /**
       
    45         * constructor.
       
    46         */
       
    47         QMPXVideoPlaybackControlConfiguration( QMPXVideoPlaybackControlsController* controller );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~QMPXVideoPlaybackControlConfiguration();
       
    53 
       
    54     public:
       
    55         /**
       
    56         * Update control list
       
    57         */
       
    58         void updateControlList( TMPXVideoPlaybackControlCommandIds event );
       
    59 
       
    60         /**
       
    61         * Return control list
       
    62         */
       
    63         QList<TMPXVideoPlaybackControls>& controlList();
       
    64 
       
    65         void updateControlsWithFileDetails();
       
    66 
       
    67     private:
       
    68         /**
       
    69         * Create control list
       
    70         */
       
    71         void createControlList();
       
    72 
       
    73         /**
       
    74         * Delete controls from list
       
    75         */
       
    76         void deleteControlFromList( TMPXVideoPlaybackControls control );
       
    77 
       
    78         /**
       
    79         * Add controls to list
       
    80         */
       
    81         void addControlToList( TMPXVideoPlaybackControls control );
       
    82 
       
    83     signals:
       
    84         void controlListUpdated();
       
    85 
       
    86     public:
       
    87         
       
    88         TInt                                 mState;
       
    89         bool                                 mUpdateControlsWithFileDetails;
       
    90         
       
    91     private:
       
    92         QMPXVideoPlaybackControlsController *mControlsController;
       
    93         QList<TMPXVideoPlaybackControls>     mControlsList;
       
    94 };
       
    95 
       
    96 #endif /*MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_*/
       
    97 
       
    98 // End of File