Skip to content

Commit f889abf

Browse files
authored
DELIA-67834 : Added privacyMode related calls. (#133)
1 parent 4ebfb21 commit f889abf

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

apis/UserSettings/IUserSettings.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ struct EXTERNAL IUserSettings : virtual public Core::IUnknown
7474
// @param service: the changed preferredClosedCaptionService.
7575
virtual void OnPreferredClosedCaptionServiceChanged(const string& service) {};
7676

77+
// @text onPrivacyModeChanged
78+
// @brief The PrivacyMode setting has changed.
79+
// @param privacyMode: "SHARE", "DO_NOT_SHARE".
80+
virtual void OnPrivacyModeChanged(const string& privacyMode /* @text privacyMode */) {};
81+
7782
// @alt onPinControlChanged
7883
// @brief The PinControl setting has changed.
7984
// @param pinControl: pinControl enabled or not.
@@ -219,6 +224,18 @@ struct EXTERNAL IUserSettings : virtual public Core::IUnknown
219224
// @param service: Identifies the service to display e.g. "CC3".
220225
virtual Core::hresult GetPreferredClosedCaptionService(string &service /* @out */) const = 0;
221226

227+
// @text setPrivacyMode
228+
// @brief Sets the PrivacyMode.
229+
// @details The setting should be honored by the Telemetry.
230+
// If privacyMode is "DO_NOT_SHARE", logs and crash report should not be uploaded.
231+
// @param privacyMode: "SHARE", "DO_NOT_SHARE"
232+
virtual uint32_t SetPrivacyMode(const string& privacyMode /* @in @text privacyMode*/) = 0;
233+
234+
// @text getPrivacyMode
235+
// @brief Gets the current PrivacyMode setting.
236+
// @param privacyMode: "SHARE"
237+
virtual uint32_t GetPrivacyMode(string &privacyMode /* @out @text privacyMode */) const = 0;
238+
222239
// @alt setPinControl
223240
// @brief Sets PinControl ON/OFF. Parental Control as a whole is enabled or disabled.
224241
// @param pinControl: Enabled/Disabled

0 commit comments

Comments
 (0)