videoplayback/videoplaybackcontrols/inc/mpxvideoplaybackcontrolconfiguration.h
changeset 0 96612d01cf9f
child 21 315810614048
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2008 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: 4 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_
       
    23 #define MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_
       
    24 
       
    25 // INCLUDES
       
    26 #include "mpxvideoplaybackcontrol.hrh"
       
    27 #include "mpxhelixplaybackplugindefs.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CMPXVideoPlaybackControlsController;
       
    31 class CMPXVideoPlaybackViewFileDetails;
       
    32 
       
    33 // DATA TYPES
       
    34 
       
    35 // CLASS DECLARATION
       
    36 class CMPXVideoPlaybackControlConfiguration : public CBase
       
    37 {
       
    38 
       
    39     public: // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CMPXVideoPlaybackControlConfiguration* NewL(
       
    45                         CMPXVideoPlaybackControlsController* aController );
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CMPXVideoPlaybackControlConfiguration();
       
    51 
       
    52     private:
       
    53 
       
    54         /**
       
    55         * C++ default constructor.
       
    56         */
       
    57         CMPXVideoPlaybackControlConfiguration( CMPXVideoPlaybackControlsController* aController );
       
    58 
       
    59         /**
       
    60         * Symbian 2nd phase constructor.
       
    61         */
       
    62         void ConstructL();
       
    63 
       
    64     public:
       
    65         /**
       
    66         * Update control list
       
    67         */
       
    68         void UpdateControlListL( TMPXVideoPlaybackControlCommandIds aEvent );
       
    69 
       
    70         /**
       
    71         * Return control list
       
    72         */
       
    73         RArray<TMPXVideoPlaybackControls>& ControlList();
       
    74 
       
    75         void UpdateControlsWithFileDetailsL();
       
    76 
       
    77     private:
       
    78         /**
       
    79         * Create control list
       
    80         */
       
    81         void CreateControlListL();
       
    82 
       
    83         /**
       
    84         * Delete controls from list
       
    85         */
       
    86         void DeleteControlFromList( TMPXVideoPlaybackControls aControl );
       
    87 
       
    88     private:
       
    89         CMPXVideoPlaybackControlsController*      iControlsController;
       
    90         RArray<TMPXVideoPlaybackControls>         iControlsList;
       
    91 
       
    92         TBool      iAspectRatioIconAdded;
       
    93         TBool      iAudioOnlyIndicatorsAdded;
       
    94         TBool      iTitleArtistIndicatorsAdded;
       
    95         TBool      iDownloadPausedAdded;
       
    96 };
       
    97 
       
    98 #endif /*MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_*/
       
    99 
       
   100 // End of File