Skip to content

Commit 04cb4ea

Browse files
dkumar798ramasat
authored andcommitted
RDKEMW-7761: Move Telemetry related APIs to the Telemetry plugin
1 parent a2826f0 commit 04cb4ea

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

apis/Telemetry/ITelemetry.h

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@ namespace WPEFramework
4242
virtual void OnReportUpload(const string& telemetryUploadStatus) {};
4343
};
4444

45-
virtual Core::hresult Register(ITelemetry::INotification* notification /* @in */) = 0;
46-
virtual Core::hresult Unregister(ITelemetry::INotification* notification /* @in */) = 0;
45+
virtual Core::hresult Register(ITelemetry::INotification* notification) = 0;
46+
virtual Core::hresult Unregister(ITelemetry::INotification* notification) = 0;
4747

4848
/**********************setReportProfileStatus() - start****************************/
4949
// @text setReportProfileStatus
5050
// @brief Sets the status of telemetry reporting
5151
// @param status - in - string
52-
virtual Core::hresult SetReportProfileStatus(const string& status /* @in */) = 0;
52+
virtual Core::hresult SetReportProfileStatus(const string& status) = 0;
5353
/**********************setReportProfileStatus() - end******************************/
5454

5555
/**********************logApplicationEvent() - start*******************************/
5656
// @text logApplicationEvent
5757
// @brief Logs an application
5858
// @param eventName - in - string
5959
// @param eventValue - in - string
60-
virtual Core::hresult LogApplicationEvent(const string& eventName /* @in */, const string& eventValue /* @in */) = 0;
60+
virtual Core::hresult LogApplicationEvent(const string& eventName , const string& eventValue) = 0;
6161
/**********************logApplicationEvent() - end*********************************/
6262

6363
/**********************uploadReport() - start**************************************/
@@ -71,6 +71,22 @@ namespace WPEFramework
7171
// @brief Abort report upload
7272
virtual Core::hresult AbortReport() = 0;
7373
/**********************abortReport() - end*****************************************/
74+
75+
/**********************setOptOutTelemetry() - start***************************************/
76+
// @text setOptOutTelemetry
77+
// @brief Sets the telemetry opt-out status.
78+
// @param OptOut - in - boolean
79+
// @param TelemetrySuccess - out - struct
80+
virtual Core::hresult SetOptOutTelemetry(const bool OptOut /* @text Opt-Out */, TelemetrySuccess& successResult /* @out */) = 0;
81+
/**********************setOptOutTelemetry() - end*****************************************/
82+
83+
/**********************isOptOutTelemetry() - start***************************************/
84+
// @text isOptOutTelemetry
85+
// @brief Checks the telemetry opt-out status.
86+
// @param OptOut - out - boolean
87+
// @param success - out - boolean
88+
virtual Core::hresult IsOptOutTelemetry(bool& OptOut /* @out @text Opt-Out*/, bool& success /* @out */) = 0
89+
/**********************isOptOutTelemetry() - end*****************************************/
7490
};
7591
} // namespace Exchange
7692
} // namespace WPEFramework

0 commit comments

Comments
 (0)