summaryrefslogtreecommitdiff
path: root/src/components/utils/include/utils/system_time_handler.h
diff options
context:
space:
mode:
authorsniukalov <sniukalov@luxoft.com>2019-05-30 09:40:59 +0300
committermked-luxoft <mked@luxoft.com>2019-08-29 17:50:31 +0300
commit19e83e31fe80ab32c27eca8e269b915adb032c64 (patch)
tree0f65614e528de63a52f4d9a9d600983f17e1ae08 /src/components/utils/include/utils/system_time_handler.h
parent47629eedfa6bbb6c75acb8baec6f1fd932f0a76d (diff)
downloadsdl_core-19e83e31fe80ab32c27eca8e269b915adb032c64.tar.gz
Added handling of service status update
- introduced ServiceStatusUpdateHandler and ServiceStatusUpdateHandlerListener interfaces - added lacking interface functions to corresponding entities - added notification of listeners - introduced ServiceStatusUpdateNotificationBuilder - replaced shared_ptr with unique_ptr - moved SERVICE_RECEIVED
Diffstat (limited to 'src/components/utils/include/utils/system_time_handler.h')
-rw-r--r--src/components/utils/include/utils/system_time_handler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/utils/include/utils/system_time_handler.h b/src/components/utils/include/utils/system_time_handler.h
index 15b2dd0cca..2013622f30 100644
--- a/src/components/utils/include/utils/system_time_handler.h
+++ b/src/components/utils/include/utils/system_time_handler.h
@@ -50,6 +50,11 @@ class SystemTimeListener {
* @param utc_time current system time.
*/
virtual void OnSystemTimeArrived(const time_t utc_time) = 0;
+
+ /**
+ * @brief OnSystemTimeFailed Notify about system request failure
+ */
+ virtual void OnSystemTimeFailed() = 0;
};
/**
@@ -97,6 +102,12 @@ class SystemTimeHandler {
time_t GetUTCTime();
/**
+ * @brief ResetPendingSystemTimeRequests resets waiting for system time
+ * requests flag
+ */
+ virtual void ResetPendingSystemTimeRequests() = 0;
+
+ /**
* @brief Checks if system time is ready
* and can be requested by GetSystemTime request
* @return True if HMI is ready to provide UTC time