diff -r 000000000000 -r 96612d01cf9f videoplayback/videoplaybackcontrols/inc/mpxvideoplaybackcontrolconfiguration.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoplayback/videoplaybackcontrols/inc/mpxvideoplaybackcontrolconfiguration.h Mon Jan 18 20:21:12 2010 +0200 @@ -0,0 +1,100 @@ +/* +* Copyright (c) 2008 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: 4 % + + + +#ifndef MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_ +#define MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_ + +// INCLUDES +#include "mpxvideoplaybackcontrol.hrh" +#include "mpxhelixplaybackplugindefs.h" + +// FORWARD DECLARATIONS +class CMPXVideoPlaybackControlsController; +class CMPXVideoPlaybackViewFileDetails; + +// DATA TYPES + +// CLASS DECLARATION +class CMPXVideoPlaybackControlConfiguration : public CBase +{ + + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CMPXVideoPlaybackControlConfiguration* NewL( + CMPXVideoPlaybackControlsController* aController ); + + /** + * Destructor. + */ + virtual ~CMPXVideoPlaybackControlConfiguration(); + + private: + + /** + * C++ default constructor. + */ + CMPXVideoPlaybackControlConfiguration( CMPXVideoPlaybackControlsController* aController ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + public: + /** + * Update control list + */ + void UpdateControlListL( TMPXVideoPlaybackControlCommandIds aEvent ); + + /** + * Return control list + */ + RArray& ControlList(); + + void UpdateControlsWithFileDetailsL(); + + private: + /** + * Create control list + */ + void CreateControlListL(); + + /** + * Delete controls from list + */ + void DeleteControlFromList( TMPXVideoPlaybackControls aControl ); + + private: + CMPXVideoPlaybackControlsController* iControlsController; + RArray iControlsList; + + TBool iAspectRatioIconAdded; + TBool iAudioOnlyIndicatorsAdded; + TBool iTitleArtistIndicatorsAdded; + TBool iDownloadPausedAdded; +}; + +#endif /*MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_*/ + +// End of File