videoplayback/videoplaybackview/controlinc/videoplaybackcontrolconfiguration.h
changeset 44 518105d52e45
child 50 21fe8338c6bf
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 VideoPlaybackControlConfiguration
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: da1mmcf#8 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef VIDEOPLAYBACKCONTROLCONFIGURATION_H_
       
    23 #define VIDEOPLAYBACKCONTROLCONFIGURATION_H_
       
    24 
       
    25 // INCLUDES
       
    26 #include <QObject>
       
    27 
       
    28 #include "videoplaybackcontrol.hrh"
       
    29 #include "mpxhelixplaybackplugindefs.h"
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class VideoPlaybackControlsController;
       
    33 
       
    34 // DATA TYPES
       
    35 
       
    36 // CLASS DECLARATION
       
    37 class VideoPlaybackControlConfiguration : public QObject
       
    38 {
       
    39     Q_OBJECT
       
    40 
       
    41     public:
       
    42 
       
    43         /**
       
    44         * constructor.
       
    45         */
       
    46         VideoPlaybackControlConfiguration( VideoPlaybackControlsController* controller );
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~VideoPlaybackControlConfiguration();
       
    52 
       
    53     public:
       
    54         /**
       
    55         * Update control list
       
    56         */
       
    57         void updateControlList( TVideoPlaybackControlCommandIds event );
       
    58 
       
    59         /**
       
    60         * Return control list
       
    61         */
       
    62         QList<TVideoPlaybackControls>& controlList();
       
    63 
       
    64         void updateControlsWithFileDetails();
       
    65 
       
    66         /**
       
    67         * Create control list
       
    68         */
       
    69         void createControlList();
       
    70 		
       
    71     private:
       
    72 
       
    73         /**
       
    74         * Delete controls from list
       
    75         */
       
    76         void deleteControlFromList( TVideoPlaybackControls control );
       
    77 
       
    78         /**
       
    79         * Add controls to list
       
    80         */
       
    81         void addControlToList( TVideoPlaybackControls control );
       
    82 
       
    83     signals:
       
    84         void controlListUpdated();
       
    85 
       
    86     private:
       
    87         VideoPlaybackControlsController *mControlsController;
       
    88         QList<TVideoPlaybackControls>    mControlsList;
       
    89 };
       
    90 
       
    91 #endif /*VIDEOPLAYBACKCONTROLCONFIGURATION_H_*/
       
    92 
       
    93 // End of File