diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-75266CB5-B29D-52B5-9881-011B53D6BDB2.dita --- a/Symbian3/PDK/Source/GUID-75266CB5-B29D-52B5-9881-011B53D6BDB2.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-75266CB5-B29D-52B5-9881-011B53D6BDB2.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,18 +1,18 @@ - - - - - -Voice Privacy Settings TutorialThis 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.

Get the current setting using RMobilePhone::GetDefaultPrivacy(). Possible settings are described in the RMobilePhone::TMobilePhonePrivacy enumeration. Set the Voice Privacy setting using RMobilePhone::SetDefaultPrivacy(). Use RMobilePhone::NotifyDefaultPrivacyChange() to get the notificationof any changes to the voice privacy settings. Voice privacy settings example

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 - } + + + + + +Voice Privacy Settings TutorialThis 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.

Get the current setting using RMobilePhone::GetDefaultPrivacy(). Possible settings are described in the RMobilePhone::TMobilePhonePrivacy enumeration. Set the Voice Privacy setting using RMobilePhone::SetDefaultPrivacy(). Use RMobilePhone::NotifyDefaultPrivacyChange() to get the notificationof any changes to the voice privacy settings. Voice privacy settings example

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 + }
\ No newline at end of file