ipappprotocols_plat/srtp_api/inc/msrtpstreamincontext.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     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:    implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MSRTPSTREAMINCONTEXT_H
       
    22 #define MSRTPSTREAMINCONTEXT_H
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29 * A context for CSRTPStreamIn states. Defines the states for incoming stream.
       
    30 *
       
    31 *  @lib n/a
       
    32 */
       
    33 class MSRTPStreamInContext
       
    34 	{
       
    35 	public: // Enumerations
       
    36 	
       
    37         /** Subscription states */
       
    38         enum TContextInState 
       
    39             {
       
    40             /* Not Initialized, no calls made for this stream yet,  */
       
    41 			ESRTPStreamInUninitialized=0,
       
    42 			/**  Use "late binding" of SSRC, that is, */
       
    43 			/** read SSRC from the packet */
       
    44 			ESRTPStreamInLateBinding=1,			          
       
    45             /** Normal, stream initialized, use the SSRC given from user */
       
    46 			ESRTPStreamInNormal=2,
       
    47 			/** Not a real state. Upper limit for the number of states */
       
    48 			EMaxStates=3
       
    49             };
       
    50 	
       
    51     public: // New functions
       
    52                        
       
    53         /*
       
    54         * Virtual function for changing state of the current 
       
    55         * receiver stream (for RTP)
       
    56         * Implemented in CSRTPStreamIn
       
    57         * @param aNewState new RTP state which stream is changed to
       
    58         */
       
    59         virtual void ChangeRTPState(TContextInState aNewState) = 0;
       
    60 
       
    61         /*
       
    62         * Virtual function for changing state of the current 
       
    63         * receiver stream (for RTCP)
       
    64         * Implemented in CSRTPStreamIn
       
    65         * * @param aNewState new RTCP state which stream is changed to
       
    66         */
       
    67         virtual void ChangeRTCPState(TContextInState aNewState) = 0;
       
    68         
       
    69 	};
       
    70 #endif  //MSRTPSTREAMINCONTEXT_H