1184 |
1184 |
1185 EXPORT_C void RMobileUssdMessaging::SendMessage(TRequestStatus& aReqStatus, const TDesC8& aMsgData, |
1185 EXPORT_C void RMobileUssdMessaging::SendMessage(TRequestStatus& aReqStatus, const TDesC8& aMsgData, |
1186 const TDesC8& aMsgAttributes, TInt aCommand) const |
1186 const TDesC8& aMsgAttributes, TInt aCommand) const |
1187 /** |
1187 /** |
1188 This member function sends a USSD message to the network. |
1188 This member function sends a USSD message to the network. |
|
1189 The received responce is later transfered to the default handler if |
|
1190 ETransferToDefaultHandler == aCommand (the only available command for now). |
1189 |
1191 |
1190 See 3GPP spec. 04.90 for more details on expected responses from |
1192 See 3GPP spec. 04.90 for more details on expected responses from |
1191 the network. |
1193 the network. |
1192 |
1194 |
1193 Use RTelSubSessionBase::CancelAsyncRequest(EMobileUssdMessagingSendMessageDefaultHandler) |
1195 Use RTelSubSessionBase::CancelAsyncRequest(EMobileUssdMessagingSendMessageDefaultHandler) |
1194 to cancel a previously placed asynchronous SendMessage() request. |
1196 to cancel a previously placed asynchronous SendMessage() request. |
1195 |
1197 |
1196 @param aReqStatus On return, KErrNone if successful. |
1198 @param aReqStatus On return, KErrNone if successful. |
1197 @param aMsgData The message data. |
1199 @param aMsgData The message data. |
1198 @param aMsgAttributes The TMobileUssdAttributesV1Pckg with the message attributes. |
1200 @param aMsgAttributes The TMobileUssdAttributesV1Pckg with the message attributes. |
|
1201 @param aCommand For now only ETransferToDefaultHandler is handled. In the future |
|
1202 more commands might be introduced. |
1199 |
1203 |
1200 @see TMobileUssdAttributesV1 |
1204 @see TMobileUssdAttributesV1 |
1201 |
1205 |
1202 @capability NetworkServices |
1206 @capability NetworkServices |
1203 @capability WriteDeviceData |
1207 @capability WriteDeviceData |
1204 @capability NetworkControl |
1208 @capability NetworkControl |
1205 */ |
1209 */ |
1206 { |
1210 { |
1207 if(ETransferToDefaultHandler != aCommand) |
1211 if(ETransferToDefaultHandler != aCommand) |
1208 { |
1212 { |
1209 aReqStatus = KErrArgument; |
1213 aReqStatus = KErrArgument; |
1210 return; |
1214 return; |
1211 } |
1215 } |
1212 Set(EMobileUssdMessagingSendMessageDefaultHandler, aReqStatus, aMsgData, aMsgAttributes); |
1216 Set(EMobileUssdMessagingSendMessageDefaultHandler, aReqStatus, aMsgData, aMsgAttributes); |
1213 } |
1217 } |
1214 |
1218 |
1215 EXPORT_C void RMobileUssdMessaging::SendMessageNoFdnCheck(TRequestStatus& aReqStatus, const TDesC8& aMsgData, const TDesC8& aMsgAttributes) const |
1219 EXPORT_C void RMobileUssdMessaging::SendMessageNoFdnCheck(TRequestStatus& aReqStatus, const TDesC8& aMsgData, const TDesC8& aMsgAttributes) const |
1216 /** |
1220 /** |