ipappsrv_plat/multimedia_comms_api/inc/mcertpobserver.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 MMCERTPOBSERVER_H
       
    22 #define MMCERTPOBSERVER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>  
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMceMediaStream;
       
    29 class CMceRtpSource;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  An interface to be implemented by users of MCE if they wish to receive
       
    35 *  events from CMceRtpSource.
       
    36 *
       
    37 *  This observer is set using CMceManager::SetRtpObserver function.
       
    38 *
       
    39 *  @lib mceclient.lib
       
    40 */
       
    41 class MMceRtpObserver
       
    42 	{
       
    43 	public: 
       
    44         /**
       
    45         * Callback function to indicate that an RTCP sender report
       
    46 		* has been received.
       
    47         * @param aSession the session that has changed
       
    48         * @param aStream the stream that has changed
       
    49         */
       
    50         virtual void SRReceived(
       
    51 				    CMceSession& aSession,
       
    52 					CMceMediaStream& aStream) = 0;
       
    53 
       
    54         /**
       
    55         * Callback function to indicate that an RTCP receiver report
       
    56 		* has been received.
       
    57         * @param aSession the session that has changed
       
    58         * @param aStream the stream that has changed
       
    59         */
       
    60         virtual void RRReceived(
       
    61 				    CMceSession& aSession,
       
    62 					CMceMediaStream& aStream) = 0;
       
    63 		
       
    64         /**
       
    65         * Callback function to indicate inactivity timer timeout
       
    66 		* has occurred. Timer is disabled after the timeout.
       
    67         * @param aStream the stream that has changed
       
    68         * @param aSource, the source that the timeout occurred.
       
    69         */
       
    70         virtual void InactivityTimeout(
       
    71 					CMceMediaStream& aStream,
       
    72 					CMceRtpSource& aSource) = 0;       
       
    73 		
       
    74 		/**
       
    75         * Callback function to indicate that spesified CMceRtpSource has
       
    76         * received RTP from a new synchronization source (SSRC).
       
    77         * @param aStream the stream that new SSRC was added to
       
    78         * @param aSource the source that new SSRC was added to
       
    79         * @param aSsrc added SSRC identifier
       
    80         */			
       
    81 		virtual void SsrcAdded(
       
    82 					CMceMediaStream& aStream,
       
    83 					CMceRtpSource& aSource,
       
    84 					TUint aSsrc ) = 0;       
       
    85 	    
       
    86 	    /**
       
    87         * Callback function to indicate that spesified CMceRtpSource has
       
    88         * received RTP BYE message from a spesified synchronization 
       
    89         * source (SSRC).
       
    90         * @param aStream the stream that SSRC was removed from
       
    91         * @param aSource the source that SSRC was removed from
       
    92         * @param aSsrc removed SSRC identifier
       
    93         */	
       
    94 		virtual void SsrcRemoved(
       
    95 					CMceMediaStream& aStream,
       
    96 					CMceRtpSource& aSource,
       
    97 					TUint aSsrc ) = 0;       
       
    98 	};
       
    99 
       
   100 #endif