multimediacommscontroller/mmccshared/inc/mccdef.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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 MCCDEF_H
       
    22 #define MCCDEF_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32cmn.h>
       
    26 #include <mmf/common/mmffourcc.h>
       
    27 #include "rtpdef.h"
       
    28 
       
    29 // CONSTANTS
       
    30 const TUid KMccUidInterface = {0x101F8CA6};
       
    31 const TUid KMccControllerUidInterface = {0x101F8CA6};
       
    32 const TInt KMaxBalance = 100;
       
    33 
       
    34 const TUint8 KG711PcmUPT = 0; // PCMU
       
    35 const TUint8 KG711PcmAPT = 8; // PCMA
       
    36 const TUint8 KG729PT = 18;    // G.729
       
    37 const TUint8 KComfortNoisePT = 13; // ComfortNoise
       
    38 const TUint8 KOldComfortNoisePT = 19; // Old ComfortNoise PayloadType, Cisco seems to use this
       
    39 const TUint8 KUnassignedPT = 20; // Unassigned payload type for dummy rtp packets
       
    40 const TUint8 KDynamicPT = 96; // dynamic payload type 96-127
       
    41 const TUint8 KPayloadDefined = 128;
       
    42 
       
    43 const TInt  KMono(1);
       
    44 const TInt  KStereo(2);
       
    45 
       
    46 const TInt KMccDefaultVideoFrameRate = 15;
       
    47 const TInt KMccDefaultVideoFrequency = 90000;
       
    48 
       
    49 // MACROS
       
    50 
       
    51 // DATA TYPES
       
    52 
       
    53 // FUNCTION PROTOTYPES
       
    54 
       
    55 // FORWARD DECLARATIONS
       
    56 
       
    57 // CLASS DECLARATION
       
    58 /**
       
    59 *  The TMccMediaStreamId encapsulates unique identifier for a media stream.
       
    60 *
       
    61 *  @lib N/A
       
    62 *  @since Series 60 3.0
       
    63 */
       
    64 class TMccMediaStreamId
       
    65 	{
       
    66 	public:
       
    67 	    inline TMccMediaStreamId()
       
    68 	        :
       
    69 	        iSessionId( -1 ),
       
    70 	        iStreamId( -1 )
       
    71 	        { }
       
    72 	        
       
    73 	    inline TMccMediaStreamId( TInt aSessionId, TInt aStreamId )
       
    74 	        :
       
    75 	        iSessionId( aSessionId ),
       
    76 	        iStreamId( aStreamId )
       
    77 	        { }
       
    78 
       
    79         inline TBool operator==( const TMccMediaStreamId& aStream ) const
       
    80             {
       
    81             return ( iSessionId == aStream.iSessionId && iStreamId == aStream.iStreamId );
       
    82             }
       
    83             
       
    84         inline TBool operator!=( const TMccMediaStreamId& aStream ) const
       
    85             {
       
    86             return ( iSessionId != aStream.iSessionId || iStreamId != aStream.iStreamId );
       
    87             }            
       
    88             
       
    89 		TInt iSessionId;
       
    90 		TInt iStreamId;
       
    91 	};
       
    92 
       
    93 #endif // MCCDEF_H