contentmgmt/referencedrmagent/RefTestAgent/streamingrefagent/source/client/sraclient.cpp
changeset 19 cd501b96611d
parent 8 35751d3474b7
child 61 641f389e9157
equal deleted inserted replaced
15:da2ae96f639b 19:cd501b96611d
   183 /**
   183 /**
   184  	Sends an SDP media field object data to the reference agent server.
   184  	Sends an SDP media field object data to the reference agent server.
   185  	@param aKey An SDP object data.
   185  	@param aKey An SDP object data.
   186  */
   186  */
   187 	{
   187 	{
       
   188 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
   188 	HBufC8* sdpBuf(0);
   189 	HBufC8* sdpBuf(0);
   189 	TPtr8 ptr(EncodeLC(aSdp, sdpBuf));
   190 	TPtr8 ptr(EncodeLC(aSdp, sdpBuf));
   190 	
       
   191 	User::LeaveIfError(RSessionBase::SendReceive(ESetSdpKeyStream, TIpcArgs(&ptr)));
   191 	User::LeaveIfError(RSessionBase::SendReceive(ESetSdpKeyStream, TIpcArgs(&ptr)));
   192 	CleanupStack::PopAndDestroy(sdpBuf);
   192 	CleanupStack::PopAndDestroy(sdpBuf);
       
   193 #else
       
   194 	(void) aSdp;
       
   195 #endif
   193 	}
   196 	}
   194 
   197 
   195 EXPORT_C void RSraClient::SendSdpDocumentL(const CSdpDocument& aSdpDoc) const
   198 EXPORT_C void RSraClient::SendSdpDocumentL(const CSdpDocument& aSdpDoc) const
   196 /**
   199 /**
   197  	Sends an SDP document object data to the reference agent server.
   200  	Sends an SDP document object data to the reference agent server.
   198  	@param aKey An SDP object data.
   201  	@param aKey An SDP object data.
   199  */
   202  */
   200 	{
   203 	{
       
   204 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
   201 	HBufC8* sdpDocBuf(0);
   205 	HBufC8* sdpDocBuf(0);
   202 	TPtr8 ptr(EncodeLC(aSdpDoc, sdpDocBuf));
   206 	TPtr8 ptr(EncodeLC(aSdpDoc, sdpDocBuf));
   203 	
       
   204 	User::LeaveIfError(RSessionBase::SendReceive(ESetSdpDocument, TIpcArgs(&ptr)));
   207 	User::LeaveIfError(RSessionBase::SendReceive(ESetSdpDocument, TIpcArgs(&ptr)));
   205 	CleanupStack::PopAndDestroy(sdpDocBuf);
   208 	CleanupStack::PopAndDestroy(sdpDocBuf);
   206 	}
   209 #else
       
   210 	(void) aSdpDoc;
       
   211 #endif
       
   212 
       
   213 	}