contentmgmt/referencedrmagent/RefTestAgent/streamingrefagent/source/client/sraclient.cpp
branchRCL_3
changeset 96 a71299154b21
parent 95 641f389e9157
equal deleted inserted replaced
95:641f389e9157 96:a71299154b21
   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 	User::LeaveIfError(RSessionBase::SendReceive(ESetSdpKeyStream, TIpcArgs(&ptr)));
   191 	User::LeaveIfError(RSessionBase::SendReceive(ESetSdpKeyStream, TIpcArgs(&ptr)));
   191 	CleanupStack::PopAndDestroy(sdpBuf);
   192 	CleanupStack::PopAndDestroy(sdpBuf);
       
   193 #else
       
   194 	(void) aSdp;
       
   195 #endif
   192 	}
   196 	}
   193 
   197 
   194 EXPORT_C void RSraClient::SendSdpDocumentL(const CSdpDocument& aSdpDoc) const
   198 EXPORT_C void RSraClient::SendSdpDocumentL(const CSdpDocument& aSdpDoc) const
   195 /**
   199 /**
   196  	Sends an SDP document object data to the reference agent server.
   200  	Sends an SDP document object data to the reference agent server.
   197  	@param aKey An SDP object data.
   201  	@param aKey An SDP object data.
   198  */
   202  */
   199 	{
   203 	{
       
   204 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
   200 	HBufC8* sdpDocBuf(0);
   205 	HBufC8* sdpDocBuf(0);
   201 	TPtr8 ptr(EncodeLC(aSdpDoc, sdpDocBuf));
   206 	TPtr8 ptr(EncodeLC(aSdpDoc, sdpDocBuf));
   202 	User::LeaveIfError(RSessionBase::SendReceive(ESetSdpDocument, TIpcArgs(&ptr)));
   207 	User::LeaveIfError(RSessionBase::SendReceive(ESetSdpDocument, TIpcArgs(&ptr)));
   203 	CleanupStack::PopAndDestroy(sdpDocBuf);
   208 	CleanupStack::PopAndDestroy(sdpDocBuf);
   204 	}
   209 #else
       
   210 	(void) aSdpDoc;
       
   211 #endif
       
   212 
       
   213 	}