Skip to content

Commit

Permalink
RDK-43262 : Added privacyMode calls. (rdkcentral#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
sborushevsky authored Jun 21, 2024
1 parent 9e19ead commit fe7cced
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions interfaces/IUserSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ struct EXTERNAL IUserSettings : virtual public Core::IUnknown {
// @brief The PreferredClosedCaptionService setting has changed.
// @param service: "CC[1-4]", "TEXT[1-4]", "SERVICE[1-64]".
virtual void OnPreferredClosedCaptionServiceChanged(const string& service) = 0;

// @brief The PrivacyMode setting has changed.
// @param privacyMode: "SHARE", "DO_NOT_SHARE".
virtual void OnPrivacyModeChanged(const string& privacyMode) = 0;
};

virtual uint32_t Register(Exchange::IUserSettings::INotification* notification /* @in */) = 0;
Expand Down Expand Up @@ -139,6 +143,18 @@ struct EXTERNAL IUserSettings : virtual public Core::IUnknown {
// @brief Gets the current PreferredClosedCaptionService setting.
// @param service Identifies the service to display e.g. "CC3".
virtual uint32_t GetPreferredClosedCaptionService(string &service /* @out */) const = 0;

// @property
// @brief Sets the PrivacyMode.
// @details The setting should be honored by the Telemetry.
// If privacyMode is "DO_NOT_SHARE", logs and crash report should not be uploaded.
// @param privacyMode: "SHARE", "DO_NOT_SHARE"
virtual uint32_t SetPrivacyMode(const string& privacyMode /* @in */) = 0;

// @property
// @brief Gets the current PrivacyMode setting.
// @param privacyMode e.g "SHARE"
virtual uint32_t GetPrivacyMode(string &privacyMode /* @out */) const = 0;
};
} // namespace Exchange
} // namespace WPEFramework

0 comments on commit fe7cced

Please sign in to comment.