multimediacommscontroller/mmccinterface/inc/mmcccodecmsrp.h
branchrcs
changeset 49 64c62431ac08
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     1 /*
       
     2 * Copyright (c) 2004-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:    Class is used for configuring G729 codec.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MMCCCODECMSRP_H
       
    23 #define MMCCCODECMSRP_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include "mmcccodecinformation.h"
       
    27 
       
    28 // CONSTANTS
       
    29 const TUint8 KPayloadType = 999;
       
    30 
       
    31 // MACROS
       
    32 
       
    33 // DATA TYPES
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42 *  Container class for the codec information.
       
    43 *
       
    44 */
       
    45 NONSHARABLE_CLASS( CMccCodecMsrp ) : public CMccCodecInformation
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48         
       
    49         /**
       
    50         * Two-phased constructor.
       
    51         */
       
    52         static CMccCodecMsrp* NewL();
       
    53         
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CMccCodecMsrp();
       
    58 
       
    59     public: // From CMccCodecInformation
       
    60     
       
    61         TBool RequireSignalling( const CMccCodecInformation& aCandidate ) const; 
       
    62         /**
       
    63         * From CMccCodecInformation
       
    64         */
       
    65         CMccCodecInformation* CloneDefaultsL();
       
    66         
       
    67         /**
       
    68         * From CMccCodecInformation
       
    69         */
       
    70         CMccCodecInformation* CloneDetailedL();
       
    71         
       
    72        
       
    73         TInt EnableVAD( TBool aEnableVAD );
       
    74      
       
    75         TInt SetBitrate( TUint aBitrate );
       
    76         
       
    77         
       
    78         TInt SetSamplingFreq( TUint32 aSamplingFreq );
       
    79 
       
    80         /**
       
    81         * From CMccCodecInformation. Sets the packet rate.
       
    82         * @since    Series 60 3.0
       
    83         * @param    aPacketrate        New packetrate
       
    84         * @return   KErrNotSupported if codec doesn't support packetrate value issued; otherwise KErrNone.
       
    85         */
       
    86         TInt SetPTime( TUint aPTime );
       
    87         
       
    88         /**
       
    89         * From CMccCodecInformation. Sets the packet rate.
       
    90         * @since    Series 60 3.0
       
    91         * @param    aPacketrate        New packetrate
       
    92         * @return   KErrNotSupported if codec doesn't support packetrate value issued; otherwise KErrNone.
       
    93         */
       
    94         TInt SetMaxPTime( TUint aMaxPTime );
       
    95 
       
    96         /**
       
    97         * From CMccCodecInformation. Sets the sdp name.
       
    98         * @since    Series 60 3.0
       
    99         * @param aRtpId - [input] RTP session ID
       
   100         * @return One of the standard system-wide error codes.
       
   101         */
       
   102         TInt SetSdpName( const TDesC8& aSdpName );
       
   103         
       
   104         /**
       
   105         * From CMccCodecInformation. Sets the payload type.
       
   106         * @since    Series 60 3.0
       
   107         * @param    aRtpId - [input] RTP session ID
       
   108         * @return   One of the standard system-wide error codes.
       
   109         */
       
   110         TInt SetPayloadType( TUint8 aPayloadType );
       
   111 
       
   112         /**
       
   113         * From CMccCodecInformation. Sets the codec mode.
       
   114         * @since    Series 60 3.0
       
   115         * @param    aMode    Codec mode ( e.g. ULAW/ALAW, Bandwidth efficient / octet aligned )
       
   116         * @return   KErrNotSupported if codec doesnt' support codec mode value issued; otherwise KErrNone.
       
   117         */
       
   118         TInt SetCodecMode( TCodecMode aCodecMode );
       
   119         
       
   120     private:
       
   121 
       
   122         /**
       
   123         * C++ default constructor.
       
   124         */
       
   125         CMccCodecMsrp();
       
   126 
       
   127         /**
       
   128         * By default Symbian 2nd phase constructor is private.
       
   129         */
       
   130         void ConstructL();
       
   131 
       
   132     };
       
   133 
       
   134 #endif         
       
   135             
       
   136 // End of File