This tutorial describes how to get and set the voice privacy settings.
The RMobilePhone API provides methods to access the device default setting for the CDMA-specific Voice Privacy service. Depending on the setting of the Voice Privacy, the phone requests privacy to be on or off for all outgoing and incoming calls.
The following code gets the current Voice Privacy setting, and checks if it is off.
The code assumes iMobilePhone is an RMobilePhone object.
RMobilePhone::TMobilePhonePrivacy mobilePhonePrivacy; User::LeaveIfError(iMobilePhone.GetDefaultPrivacy(mobilePhonePrivacy)); if (mobilePhonePrivacy == RMobilePhone::EPrivacyOff) { //do something }
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.