@@ -31,6 +31,10 @@ namespace WPEFramework
31
31
{
32
32
enum { ID = ID_TELEMETRY };
33
33
34
+ struct EXTERNAL TelemetrySuccess {
35
+ bool success;
36
+ };
37
+
34
38
// @event
35
39
struct EXTERNAL INotification : virtual public Core::IUnknown
36
40
{
@@ -42,22 +46,22 @@ namespace WPEFramework
42
46
virtual void OnReportUpload (const string& telemetryUploadStatus) {};
43
47
};
44
48
45
- virtual Core::hresult Register (ITelemetry::INotification* notification /* @in */ ) = 0;
46
- virtual Core::hresult Unregister (ITelemetry::INotification* notification /* @in */ ) = 0;
49
+ virtual Core::hresult Register (ITelemetry::INotification* notification) = 0;
50
+ virtual Core::hresult Unregister (ITelemetry::INotification* notification) = 0;
47
51
48
52
/* *********************setReportProfileStatus() - start****************************/
49
53
// @text setReportProfileStatus
50
54
// @brief Sets the status of telemetry reporting
51
55
// @param status - in - string
52
- virtual Core::hresult SetReportProfileStatus (const string& status /* @in */ ) = 0;
56
+ virtual Core::hresult SetReportProfileStatus (const string& status) = 0;
53
57
/* *********************setReportProfileStatus() - end******************************/
54
58
55
59
/* *********************logApplicationEvent() - start*******************************/
56
60
// @text logApplicationEvent
57
61
// @brief Logs an application
58
62
// @param eventName - in - string
59
63
// @param eventValue - in - string
60
- virtual Core::hresult LogApplicationEvent (const string& eventName /* @in */ , const string& eventValue /* @in */ ) = 0;
64
+ virtual Core::hresult LogApplicationEvent (const string& eventName , const string& eventValue) = 0;
61
65
/* *********************logApplicationEvent() - end*********************************/
62
66
63
67
/* *********************uploadReport() - start**************************************/
@@ -71,6 +75,22 @@ namespace WPEFramework
71
75
// @brief Abort report upload
72
76
virtual Core::hresult AbortReport () = 0;
73
77
/* *********************abortReport() - end*****************************************/
78
+
79
+ /* *********************setOptOutTelemetry() - start***************************************/
80
+ // @text setOptOutTelemetry
81
+ // @brief Sets the telemetry opt-out status.
82
+ // @param OptOut - in - boolean
83
+ // @param - out - struct
84
+ virtual Core::hresult SetOptOutTelemetry (const bool optOut /* @text Opt-Out */ , TelemetrySuccess& successResult /* @out */ ) = 0;
85
+ /* *********************setOptOutTelemetry() - end*****************************************/
86
+
87
+ /* *********************isOptOutTelemetry() - start***************************************/
88
+ // @text isOptOutTelemetry
89
+ // @brief Checks the telemetry opt-out status.
90
+ // @param OptOut - out - boolean
91
+ // @param success - out - boolean
92
+ virtual Core::hresult IsOptOutTelemetry (bool & optOut /* @out @text Opt-Out*/ , bool & success /* @out */ ) = 0;
93
+ /* *********************isOptOutTelemetry() - end*****************************************/
74
94
};
75
95
} // namespace Exchange
76
96
} // namespace WPEFramework
0 commit comments