This 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.
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; }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.