From: Changgyu Choi Date: Thu, 7 Sep 2023 07:18:33 +0000 (+0900) Subject: Add missing time zone changed callback implementation X-Git-Tag: accepted/tizen/unified/20230908.083303~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bca0e6519738fea5b4e7744e81d0d208855e433;p=platform%2Fcore%2Fappfw%2Fcomponent-based-application.git Add missing time zone changed callback implementation StubFrameComponent and StubServiceComponent should override OnTimeZoneChanged() method. Change-Id: If50e2a28955885598c639c3bb7a18664357e4727 Signed-off-by: Changgyu Choi --- 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_;