videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/stub/inc/mpxvideoplaybackcontrolconfiguration.h
author hgs
Fri, 16 Apr 2010 18:13:14 +0300
changeset 36 8aed59de29f9
parent 34 bbb98528c666
permissions -rw-r--r--
201015

/*
* Copyright (c) 20101 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implementation of CMPXVideoPlaybackControlConfiguration
*
*/

// Version : %version:  2 %



#ifndef MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_
#define MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_

// INCLUDES
#include <qobject>

#include <mpxplaybackframeworkdefs.h>
#include "mpxvideoplaybackcontrol.hrh"
#include "mpxhelixplaybackplugindefs.h"

// FORWARD DECLARATIONS
class QMPXVideoPlaybackControlsController;

// DATA TYPES

// CLASS DECLARATION
class QMPXVideoPlaybackControlConfiguration : public QObject
{
    Q_OBJECT

    public:

        /**
        * constructor.
        */
        QMPXVideoPlaybackControlConfiguration( QMPXVideoPlaybackControlsController* controller );

        /**
        * Destructor.
        */
        virtual ~QMPXVideoPlaybackControlConfiguration();

    public:
        /**
        * Update control list
        */
        void updateControlList( TMPXVideoPlaybackControlCommandIds event );

        /**
        * Return control list
        */
        QList<TMPXVideoPlaybackControls>& controlList();

        void updateControlsWithFileDetails();

        /**
        * Create control list
        */
        void createControlList();

    private:

        /**
        * Delete controls from list
        */
        void deleteControlFromList( TMPXVideoPlaybackControls control );

        /**
        * Add controls to list
        */
        void addControlToList( TMPXVideoPlaybackControls control );

    signals:
        void controlListUpdated();

    public:
        
        TInt                                 mState;
        bool                                 mUpdateControlsWithFileDetails;
        
    private:
        QMPXVideoPlaybackControlsController *mControlsController;
        QList<TMPXVideoPlaybackControls>     mControlsList;
};

#endif /*MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_*/

// End of File