rtp/rtpstack/inc/rtpsdes.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2004-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 __RTPSDES_H
       
    22 #define __RTPSDES_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <rtpheader.h>
       
    27 
       
    28 // DATA TYPES
       
    29 enum TRtcpSdesType
       
    30     {
       
    31     ERTCP_SDES_CNAME        = 0,
       
    32     ERTCP_SDES_NAME         = 1,
       
    33     ERTCP_SDES_EMAIL        = 2,
       
    34     ERTCP_SDES_PHONE        = 3,
       
    35     ERTCP_SDES_LOC          = 4,
       
    36     ERTCP_SDES_TOOL         = 5,
       
    37     ERTCP_SDES_NOTE         = 6,
       
    38     ERTCP_SDES_PRIV         = 7,
       
    39     ERTCP_NUM_OF_SDES_ITEMS = 8
       
    40     } ;
       
    41 
       
    42 // FORWARD DECLARATIONS
       
    43 class TRtpSdesParams;
       
    44 
       
    45 /**
       
    46 *  RTCP SDES class. 
       
    47 *
       
    48 *  @lib RtpService.dll
       
    49 */
       
    50 class CRtpSDES : public CBase
       
    51     {
       
    52     public:
       
    53         static CRtpSDES* NewL();
       
    54         static CRtpSDES* NewL( const TRtpSdesParams& aSDES );
       
    55 
       
    56         ~CRtpSDES();
       
    57 
       
    58         void GetSDES( TRtpSdesParams& aSDES );
       
    59         void SetSDES( const TRtpSdesParams& aSDES );
       
    60         void AddSsrcToSdesL( const TRtpSSRC aSSRC );
       
    61         TBool GetSdesSsrc( TRtpSSRC aSSRC );
       
    62         
       
    63     private:
       
    64         CRtpSDES();
       
    65         void ConstructL();
       
    66         void ConstructL( const TRtpSdesParams& aSDES );
       
    67 
       
    68     public:
       
    69         HBufC8* iSDESBuf[ERTCP_NUM_OF_SDES_ITEMS];
       
    70         TUint8* iSDESItems[ERTCP_NUM_OF_SDES_ITEMS];
       
    71         TInt iSDESItemsSize[ERTCP_NUM_OF_SDES_ITEMS];
       
    72         CArrayFixFlat<TRtpSSRC>* iSndSSRCArray; //array of SSRCs comming from this SDES participant
       
    73     };
       
    74 
       
    75 #endif // __RTPSDES_H
       
    76 
       
    77 // End of File