Minor improvements for force-uninstall step
[platform/core/appfw/wgt-backend.git] / src / wgt / step / step_wgt_remove_manifest.h
1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
4
5 #ifndef WGT_STEP_STEP_WGT_REMOVE_MANIFEST_H_
6 #define WGT_STEP_STEP_WGT_REMOVE_MANIFEST_H_
7
8 #include <manifest_parser/utils/logging.h>
9
10 #include "common/installer_context.h"
11 #include "common/step/step.h"
12
13 namespace wgt {
14 namespace pkgmgr {
15
16 /**
17  * \brief Step responsbile for removing manifest file during uninstallation
18  */
19 class StepRemoveManifest : public common_installer::Step {
20  public:
21   using common_installer::Step::Step;
22
23   /**
24    * \brief main logic of remove manifest
25    *
26    * \return Status::OK if success, Status::ERROR otherwise
27    */
28   Status process() override;
29
30   Status clean() override { return Status::OK; }
31   Status undo() override { return Status::OK; }
32   Status precheck() override { return Status::OK; }
33
34   SCOPE_LOG_TAG(RemoveManifest)
35 };
36
37 }  // namespace pkgmgr
38 }  // namespace wgt
39
40 #endif  // WGT_STEP_STEP_WGT_REMOVE_MANIFEST_H_