[Release] wrt-installer_0.1.114
[framework/web/wrt-installer.git] / src / jobs / widget_uninstall / task_delete_certificates.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 77e2058..1c38eca
@@ -34,22 +34,31 @@ TaskDeleteCertificates::TaskDeleteCertificates(
     DPL::TaskDecl<TaskDeleteCertificates>(this),
     m_context(context)
 {
+    AddStep(&TaskDeleteCertificates::StartStep);
     AddStep(&TaskDeleteCertificates::StepDeleteCertificates);
+    AddStep(&TaskDeleteCertificates::EndStep);
 }
 
 TaskDeleteCertificates::~TaskDeleteCertificates()
-{
-}
+{}
 
 void TaskDeleteCertificates::StepDeleteCertificates()
 {
-    pkgmgr_instcertinfo_h handle;
-
     if ((pkgmgr_installer_delete_certinfo(
-                    const_cast<char*>((
-                            m_context.tzAppid).c_str()))) < 0) {
+             const_cast<char*>((m_context.tzAppid).c_str()))) < 0)
+    {
         LogError("pkgmgr_installer_delete_certinfo fail");
     }
 }
+
+void TaskDeleteCertificates::StartStep()
+{
+    LogDebug("--------- <TaskDeleteCertificates> : START ----------");
+}
+
+void TaskDeleteCertificates::EndStep()
+{
+    LogDebug("--------- <TaskDeleteCertificates> : END ----------");
+}
 } //namespace WidgetUninstall
 } //namespace Jobs