mmfenh/enhancedmediaclient/Client/src/Components/ClientDataBufferSource/DRMConfigIntfcImpl.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Header of DRMConfigIntfcImpl object.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CDRMCONFIGINTFCIMPL_H
       
    20 #define C_CDRMCONFIGINTFCIMPL_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <DRMConfigIntfc.h>
       
    24 #include "ParentChildIntfc.h"
       
    25 #include "ClientDataBufferSource.h"
       
    26 
       
    27 using multimedia::CClientDataBufferSource;
       
    28 /**
       
    29 *  DRM Config Implementation
       
    30 *  @lib EnhancedMediaClient.lib
       
    31 *  @since S60 v3.2
       
    32 */    
       
    33 class CDRMConfigIntcfImpl : public CBase,
       
    34                             public CDRMConfigIntfc,
       
    35                             public CChildIntfc
       
    36     {
       
    37     public:
       
    38         /**
       
    39         * Function to Create the Object.
       
    40         * @param aObserver Observer to callback the Event.
       
    41         */
       
    42         static CDRMConfigIntcfImpl* NewL( CClientDataBufferSource& aDRMHandler );
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         ~CDRMConfigIntcfImpl();
       
    47 
       
    48         /**
       
    49         * From CDRMConfigIntfc.
       
    50         * Gets the DRM type set by the Client
       
    51         *
       
    52         * @since S60 v3.2
       
    53         * @param aDRMType   DRM type set by the Client
       
    54         */            
       
    55         TInt GetDRMType( TDRMType& aDRMType );
       
    56         /**
       
    57         * From CDRMConfigIntfc.
       
    58         * DRM type set by the Client
       
    59         *
       
    60         * @since S60 v3.2
       
    61         * @param aDRMType   DRM type set by the Client
       
    62         */            
       
    63         TInt SetDRMType( TDRMType aDRMType );
       
    64         /**
       
    65         * From CDRMConfigIntfc.
       
    66         * Number of Allowed output Devices
       
    67         *
       
    68         * @since S60 v3.2
       
    69         * @param aCount   Number of Output Devices Allowed
       
    70         */            
       
    71         TInt GetAllowedOutputDeviceCount( TInt& aCount );
       
    72         /**
       
    73         * From CDRMConfigIntfc.
       
    74         * Gets the Output Device from a particular index in 
       
    75         * the array of Allowed Output Devices
       
    76         *
       
    77         * @since S60 v3.2
       
    78         * @param aIndex   Index into the Array
       
    79         * @param aOutputDevice   Output Device at the input index
       
    80         */            
       
    81         TInt GetAllowedOutputDevice(
       
    82                         TInt aIndex,
       
    83                         TDRMAllowedOutputDevice& aOutputDevice );
       
    84         /**
       
    85         * From CDRMConfigIntfc.
       
    86         * Append Allowed Output Devices
       
    87         *
       
    88         * @since S60 v3.2
       
    89         * @param aOutputDevice   Output Device to be appended to the Array
       
    90         */            
       
    91         TInt AppendAllowedOutputDevice(
       
    92                                 TDRMAllowedOutputDevice aOutputDevice );
       
    93         /**
       
    94         * From CDRMConfigIntfc.
       
    95         * Append Allowed Output Devices
       
    96         *
       
    97         * @since S60 v3.2
       
    98         * @param aOutputDevice   Output Device to be removed from the Array
       
    99         */            
       
   100         TInt RemoveAllowedOutputDevice(
       
   101                                 TDRMAllowedOutputDevice aOutputDevice );
       
   102         /**
       
   103         * From CDRMConfigIntfc.
       
   104         * Reset the Allowed Ooutput Device List
       
   105         *
       
   106         * @since S60 v3.2
       
   107         */            
       
   108         TInt Reset();
       
   109         /**
       
   110         * From CDRMConfigIntfc.
       
   111         * Commint the stored list to the ServerSide Source
       
   112         *
       
   113         * @since S60 v3.2
       
   114         */            
       
   115         TInt Commit();
       
   116     
       
   117     private:
       
   118         CDRMConfigIntcfImpl( CClientDataBufferSource& aDRMHandler );
       
   119         void ConstructL();
       
   120     
       
   121     private:
       
   122         /**
       
   123         * Pointer to the ClientDataBufferSource which requested this.
       
   124         */
       
   125         CClientDataBufferSource* iDRMHandler;
       
   126     };
       
   127 
       
   128 #endif /*C_CDRMCONFIGINTFCIMPL_H*/
       
   129 
       
   130 // End of file