telephonyserver/etelmultimode/CETEL/mm_messaging.cpp
branchopencode
changeset 77 930a53cdc2d3
parent 24 6638e7f4bd8f
child 85 96b4f933d69a
--- a/telephonyserver/etelmultimode/CETEL/mm_messaging.cpp	Fri Jun 04 13:03:15 2010 +0100
+++ b/telephonyserver/etelmultimode/CETEL/mm_messaging.cpp	Thu Oct 07 19:32:01 2010 +0300
@@ -1182,6 +1182,36 @@
 	Set(EMobileUssdMessagingSendMessage, aReqStatus, aMsgData, aMsgAttributes);
 	}
 
+EXPORT_C void RMobileUssdMessaging::SendMessage(TRequestStatus& aReqStatus, const TDesC8& aMsgData, 
+												const TDesC8& aMsgAttributes, TInt aCommand) const
+/**
+	This member function sends a USSD message to the network.
+
+	See	3GPP spec. 04.90 for more details on expected responses from
+	the network.
+	
+	Use RTelSubSessionBase::CancelAsyncRequest(EMobileUssdMessagingSendMessageDefaultHandler) 
+	to cancel a previously placed asynchronous SendMessage() request.
+	
+	@param aReqStatus On return, KErrNone if successful.
+	@param aMsgData The message data.
+	@param aMsgAttributes The TMobileUssdAttributesV1Pckg with the message attributes.
+
+	@see TMobileUssdAttributesV1
+
+@capability NetworkServices
+@capability WriteDeviceData
+@capability NetworkControl
+*/
+	{	
+	if(ETransferToDefaultHandler != aCommand)
+	{
+	aReqStatus = KErrArgument;
+	return;
+	}
+	Set(EMobileUssdMessagingSendMessageDefaultHandler, aReqStatus, aMsgData, aMsgAttributes); 	
+	}
+
 EXPORT_C void RMobileUssdMessaging::SendMessageNoFdnCheck(TRequestStatus& aReqStatus, const TDesC8& aMsgData, const TDesC8& aMsgAttributes) const
 /**
 	Sends an outgoing USSD to the network.