multimediacommsengine/mmceshared/inc/mcecomredcodec.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MCECOMREDCODEC_H
       
    22 #define MCECOMREDCODEC_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include "mcecomaudiocodec.h"
       
    26 #include "mcedefs.h"
       
    27 
       
    28 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *  Container class for the codec information.
       
    33 *
       
    34 *  @lib 
       
    35 */
       
    36 class CMceComRedCodec : public CMceComAudioCodec
       
    37     {
       
    38 public:  // Constructors and destructor
       
    39 
       
    40     /**
       
    41     * Two-phased constructor.
       
    42     * @param aSdpName sdp name
       
    43     */
       
    44     static CMceComRedCodec* NewL( TBuf8<KMceMaxSdpNameLength> aSdpName );
       
    45     
       
    46     /**
       
    47     * Two-phased constructor.
       
    48     * @param aSdpName sdp name
       
    49     */
       
    50     static CMceComRedCodec* NewLC( TBuf8<KMceMaxSdpNameLength> aSdpName );
       
    51     
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     ~CMceComRedCodec();
       
    56     
       
    57 public: // from CMceComCodec
       
    58 
       
    59     /**
       
    60     * Check if codec can send.
       
    61     * @return ETrue if can send
       
    62     */
       
    63     TBool SendSupported();
       
    64 
       
    65     /**
       
    66     * Sets the payload type.
       
    67     * @param aPayloadType type identifier of the payload
       
    68     * @return KErrNotSupported if codec doesn't support payload type issued
       
    69     */
       
    70     TInt SetPayloadType( TUint8 aPayloadType );
       
    71     
       
    72 #ifdef MCE_COMMON_SERVER_SIDE
       
    73 
       
    74     /**
       
    75     * Creates server stream(s) for this codec
       
    76     * @param aCodecIndex
       
    77     * @param aStreams stream is added to the array
       
    78     * @param aAudio
       
    79     * @param aManager
       
    80     */
       
    81     void DoDecodeAudioL( TInt aCodecIndex,
       
    82                          RPointerArray<CMceSrvStream>& aStreams,
       
    83                          CMceComAudioStream& aAudio,
       
    84                          CMceMediaManager& aManager );
       
    85                          
       
    86 #endif
       
    87    
       
    88 public: // serialization etc
       
    89 
       
    90     /**
       
    91     * Clones
       
    92     */
       
    93     CMceComAudioCodec* CloneL();
       
    94     
       
    95 
       
    96 private:
       
    97 
       
    98     /**
       
    99     * C++ default constructor.
       
   100     */
       
   101     CMceComRedCodec();
       
   102 
       
   103     /**
       
   104     * By default Symbian 2nd phase constructor is private.
       
   105     */
       
   106     void ConstructL( TBuf8<KMceMaxSdpNameLength> aSdpName);
       
   107 
       
   108     /**
       
   109      * second-phase copy constructor
       
   110      */
       
   111     void ConstructL( CMceComRedCodec& aCodec );
       
   112     
       
   113             
       
   114     };
       
   115 
       
   116 
       
   117 #endif      // MCECOMREDCODEC_H
       
   118 
       
   119 
       
   120 // End of File