multimediacommsengine/mmceshared/inc/mcecomcncodec.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 MCECOMCNCODEC_H
       
    22 #define MCECOMCNCODEC_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 CMceComCnCodec : public CMceComAudioCodec
       
    37     {
       
    38 public:  // Constructors and destructor
       
    39 
       
    40     /**
       
    41     * Two-phased constructor.
       
    42     * @param aSdpName sdp name
       
    43     */
       
    44     static CMceComCnCodec* NewL( TBuf8<KMceMaxSdpNameLength> aSdpName );
       
    45     
       
    46     /**
       
    47     * Two-phased constructor.
       
    48     * @param aSdpName sdp name
       
    49     */
       
    50     static CMceComCnCodec* NewLC( TBuf8<KMceMaxSdpNameLength> aSdpName );
       
    51     
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     ~CMceComCnCodec();
       
    56     
       
    57     
       
    58 public: // from CMceComCodec
       
    59 
       
    60     /**
       
    61     * Check if codec can send.
       
    62     * @return ETrue if can send
       
    63     */
       
    64     TBool SendSupported();
       
    65 
       
    66 #ifdef MCE_COMMON_SERVER_SIDE
       
    67 
       
    68     /**
       
    69     * Creates server stream(s) for this codec
       
    70     * @param aCodecIndex
       
    71     * @param aStreams stream is added to the array
       
    72     * @param aAudio
       
    73     * @param aManager
       
    74     */
       
    75     void DoDecodeAudioL( TInt aCodecIndex,
       
    76                          RPointerArray<CMceSrvStream>& aStreams,
       
    77                          CMceComAudioStream& aAudio,
       
    78                          CMceMediaManager& aManager );
       
    79                          
       
    80 #endif
       
    81    
       
    82 public: // serialization etc
       
    83 
       
    84     /**
       
    85     * Clones
       
    86     */
       
    87     CMceComAudioCodec* CloneL();
       
    88     
       
    89 
       
    90 private:
       
    91 
       
    92     /**
       
    93     * C++ default constructor.
       
    94     */
       
    95     CMceComCnCodec();
       
    96 
       
    97     /**
       
    98     * By default Symbian 2nd phase constructor is private.
       
    99     */
       
   100     void ConstructL( TBuf8<KMceMaxSdpNameLength> aSdpName);
       
   101 
       
   102     /**
       
   103      * second-phase copy constructor
       
   104      */
       
   105     void ConstructL( CMceComCnCodec& aCodec );
       
   106     
       
   107             
       
   108     };
       
   109 
       
   110 
       
   111 #endif      // MCECOMCNCODEC_H
       
   112 
       
   113 
       
   114 // End of File