Add missing ttrace logs 99/278599/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 22 Jul 2022 07:58:17 +0000 (16:58 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 22 Jul 2022 07:58:17 +0000 (16:58 +0900)
The OnControl() method is added to AppCoreUiBase class for overriding.
While calling the method, it prints ttrace logs for debugging.

Change-Id: I8569e06c51abe837b773de65c839ef96bb7664e2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tizen-cpp/app-core-ui-cpp/app_core_ui_base.cc
tizen-cpp/app-core-ui-cpp/app_core_ui_base.hh

index 607ecbd..0cf24a8 100644 (file)
@@ -695,6 +695,15 @@ int AppCoreUiBase::OnReceive(aul_type type, tizen_base::Bundle b) {
   return 0;
 }
 
+int AppCoreUiBase::OnControl(tizen_base::Bundle b) {
+  LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:start]",
+      impl_->appid_.c_str());
+  AppCoreBase::OnControl(std::move(b));
+  LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:done]",
+      impl_->appid_.c_str());
+  return 0;
+}
+
 int AppCoreUiBase::OnCreate() {
   impl_->handler_->SetEvents();
   AppCoreBase::OnCreate();
index 7ccb6b4..ce9ff03 100644 (file)
@@ -48,6 +48,7 @@ class EXPORT_API AppCoreUiBase : public AppCoreBase,
   int OnPause() override;
   int OnResume() override;
   int OnReceive(aul_type type, tizen_base::Bundle b) override;
+  int OnControl(tizen_base::Bundle b) override;
   int OnCreate() override;
   int OnTerminate() override;
   int OnTrimMemory() override;