tizen 2.4 release
[framework/web/wrt-installer.git] / src / jobs / widget_uninstall / task_delete_prelaunching_info.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
  *    limitations under the License.
  */
 /**
- * @file    task_delete_pkginfo.h
- * @author  Leerang Song(leerang.song@samsung.com)
+ * @file    task_delete_prelaunching_info.h
+ * @author  Taejeong Lee (taejeong.lee.com)
  * @version 1.0
- * @brief   Header file for uninstaller task delete package infomation
  */
 
-#ifndef WRT_SRC_INSTALLER_CORE_JOB_WIDGET_UNINSTALL_TASK_DELETE_PKGINFO_H_
-#define WRT_SRC_INSTALLER_CORE_JOB_WIDGET_UNINSTALL_TASK_DELETE_PKGINFO_H_
-
-#include <dpl/task.h>
-#include <string>
+#ifndef SRC_JOBS_WIDGET_UNINSTALL_TASK_DELETE_PRELAUNCHING_INFO_H_
+#define SRC_JOBS_WIDGET_UNINSTALL_TASK_DELETE_PRELAUNCHING_INFO_H_
 
+//forward declaration
 struct UninstallerContext;
 
+#include <dpl/task.h>
+
 namespace Jobs {
 namespace WidgetUninstall {
-class TaskDeletePkgInfo :
-    public DPL::TaskDecl<TaskDeletePkgInfo>
+class TaskDeletePreLaunchingInfo :
+    public DPL::TaskDecl<TaskDeletePreLaunchingInfo>
 {
     UninstallerContext& m_context;
+    bool m_flagWasDeleted;
 
   private:
-    void StepDeletePkgInfo();
-
+    void StepAbortDeletePreLaunchingInfo();
     void StartStep();
     void EndStep();
+    void StepDeletePreLaunchingInfoFile();
 
   public:
-    TaskDeletePkgInfo(UninstallerContext& context);
+    explicit TaskDeletePreLaunchingInfo(UninstallerContext& context);
 };
 } //namespace WidgetUninstall
 } //namespace Jobs
 
-#endif
-// WRT_SRC_INSTALLER_CORE_JOB_WIDGET_UNINSTALL_TASK_DELETE_PKGINFO_H_
+#endif // SRC_JOBS_WIDGET_UNINSTALL_TASK_DELETE_PRELAUNCHING_INFO_H_
\ No newline at end of file