Add missing time zone changed callback implementation 54/298454/2
authorChanggyu Choi <changyu.choi@samsung.com>
Thu, 7 Sep 2023 07:18:33 +0000 (16:18 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Thu, 7 Sep 2023 07:29:50 +0000 (16:29 +0900)
StubFrameComponent and StubServiceComponent should override OnTimeZoneChanged() method.

Change-Id: If50e2a28955885598c639c3bb7a18664357e4727
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
component_based/base/stub.cc
component_based/efl_base/stub.cc

index 3a333007b2deddfed7a66112f36e50e96e4794d0..07b1021423a558cf10052aef041e0cdad5dc19b8 100644 (file)
@@ -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_;
index e1691cfb7d108e0de536d3cdceb567dcd7832f15..e3c3503456757e168c03f0c0af8d882a0658a7ce 100644 (file)
@@ -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_;