Msrp/MsrpClient/src/CMSRPImplementation.cpp
branchMSRP_FrameWork
changeset 58 cdb720e67852
parent 25 505ad3f0ce5c
equal deleted inserted replaced
25:505ad3f0ce5c 58:cdb720e67852
    76 	delete iMSRP;	
    76 	delete iMSRP;	
    77 	
    77 	
    78 	}
    78 	}
    79  
    79  
    80  
    80  
    81 CMSRPSession* CMSRPImplementation::CreateMSRPSessionL( MMSRPSessionObserver& aObserver,
    81 CMSRPSession* CMSRPImplementation::CreateMSRPSessionL( 
    82                                                        const TUint aIapId )
    82     MMSRPSessionObserver& aObserver,
       
    83     const TUint aIapId,
       
    84     const TDesC8& aSessionId )
    83 	{
    85 	{
    84 	// Creates and Returns a MSRP Session. 
    86 	// Creates and Returns a MSRP Session. 
    85 	// No paramers are taken at this stage. Primarily because 
    87 	// No paramers are taken at this stage. Primarily because 
    86 	// this is the first step the MSRP user is expected to do before 
    88 	// this is the first step the MSRP user is expected to do before 
    87 	// SDP negotiation. 
    89 	// SDP negotiation. 
    89 	// avaible trasport etc. 
    91 	// avaible trasport etc. 
    90 	
    92 	
    91 	MSRPLOG("CMSRP Impl.. Create MSRP session");
    93 	MSRPLOG("CMSRP Impl.. Create MSRP session");
    92 
    94 
    93 	CMSRPSession* msrpSession 
    95 	CMSRPSession* msrpSession 
    94 	 			= CMSRPSession::NewL( *iMSRP, aObserver, aIapId );
    96 	 			= CMSRPSession::NewL( *iMSRP, aObserver, aIapId, aSessionId );
    95 
    97 
    96 	// CMSRPImplementation would like to keep a tab on number of MSRP sessions 
    98 	// CMSRPImplementation would like to keep a tab on number of MSRP sessions 
    97 	// that it is serving.Append the MSRPSession to a session array.
    99 	// that it is serving.Append the MSRPSession to a session array.
    98 	
   100 	
    99 	iMSRPSessionsArray.AppendL(msrpSession);
   101 	iMSRPSessionsArray.AppendL(msrpSession);