diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-512B6FEB-3328-59A6-913C-7E9F7A5A0A04.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-512B6FEB-3328-59A6-913C-7E9F7A5A0A04.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,52 @@ + + + + + +Retrieve +Message Waiting Information TutorialThis tutorial describes how to retrieve a message waiting information. +

Message waiting indicator informs the subscriber that, depending +on the mode, the voice messages, data messages, fax messages, and email messages +are waiting to be retrieved.

+ +Use RMobilePhone::NotifyMessageWaiting() to +get the notification when the phone receives a message waiting indication +from the network. + +In GSM and WCDMA modes, message waiting indications are received through +SMS messages. This is applicable only to CDMA. + +Retrieve the set +of message waiting indicators from the current ICC using RMobilePhone::GetIccMessageWaitingIndicators(). +Indicator values are described by RMobilePhone::TMobilePhoneMessageWaitingV1. + +Set the message +waiting indicators on the current ICC using RMobilePhone::SetIccMessageWaitingIndicators(). + +Use RMobilePhone::NotifyIccMessageWaitingIndicatorsChange() to +get the notifications of any changes to the message waiting indicators on +the current ICC. + + +Message waiting indicator example

The following +code gets the message waiting indicators and returns the number of voice messages +waiting.

TUint8 CClientApp::VoiceMessagesWaitingL() + { + RMobilePhone::TMobilePhoneMessageWaitingV1 messageWaiting; + RMobilePhone::TMobilePhoneMessageWaitingV1Pckg messageWaitingPckg(messageWaiting); + TRequestStatus status; + + iMobilePhone.GetIccMessageWaitingIndicators(status,messageWaitingPckg); + User::WaitForRequest(status); + User::LeaveIfError(status.Int()); + + return messageWaiting.iVoiceMsgs; + } +
+
\ No newline at end of file