From 6bca0e6519738fea5b4e7744e81d0d208855e433 Mon Sep 17 00:00:00 2001 From: Changgyu Choi Date: Thu, 7 Sep 2023 16:18:33 +0900 Subject: [PATCH] Add missing time zone changed callback implementation StubFrameComponent and StubServiceComponent should override OnTimeZoneChanged() method. Change-Id: If50e2a28955885598c639c3bb7a18664357e4727 Signed-off-by: Changgyu Choi --- component_based/base/stub.cc | 18 ++++++++++++++++++ component_based/efl_base/stub.cc | 10 ++++++++++ 2 files changed, 28 insertions(+) diff --git a/component_based/base/stub.cc b/component_based/base/stub.cc index 3a33300..07b1021 100644 --- a/component_based/base/stub.cc +++ b/component_based/base/stub.cc @@ -416,6 +416,15 @@ class StubFrameComponent : public FrameComponent { } } + void OnTimeZoneChanged(const std::string& time_zone, + const std::string& time_zone_id) override { + FrameComponent::OnTimeZoneChanged(time_zone, time_zone_id); + if (cb_.time_zone_changed) { + cb_.time_zone_changed(this, time_zone.c_str(), + time_zone_id.c_str(), user_data_); + } + } + private: base_frame_component_lifecycle_callback_s cb_; void* user_data_; @@ -542,6 +551,15 @@ class StubServiceComponent : public ServiceComponent { } } + void OnTimeZoneChanged(const std::string& time_zone, + const std::string& time_zone_id) override { + ServiceComponent::OnTimeZoneChanged(time_zone, time_zone_id); + if (cb_.time_zone_changed) { + cb_.time_zone_changed(this, time_zone.c_str(), + time_zone_id.c_str(), user_data_); + } + } + private: base_service_component_lifecycle_callback_s cb_; void* user_data_; diff --git a/component_based/efl_base/stub.cc b/component_based/efl_base/stub.cc index e1691cf..e3c3503 100644 --- a/component_based/efl_base/stub.cc +++ b/component_based/efl_base/stub.cc @@ -417,6 +417,16 @@ class StubServiceComponent : public ServiceComponent { } } + void OnTimeZoneChanged(const std::string& time_zone, const std::string& time_zone_id) override { + ServiceComponent::OnTimeZoneChanged(time_zone, time_zone_id); + if (cb_.time_zone_changed) { + cb_.time_zone_changed(this, + time_zone.c_str(), + time_zone_id.c_str(), + user_data_); + } + } + private: service_component_lifecycle_callback_s cb_; void* user_data_; -- 2.34.1