Detach Umount operation from mount install's clean
[platform/core/appfw/app-installers.git] / src / common / step / mount / step_unmount.h
1 // Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMMON_STEP_MOUNT_STEP_UNMOUNT_H_
6 #define COMMON_STEP_MOUNT_STEP_UNMOUNT_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 common_installer {
14 namespace mount {
15
16 /**
17  * \brief Responsible for checking existance of mount path to perform
18  *
19  */
20 class StepUnmount : public Step {
21  public:
22   using Step::Step;
23
24   Status process() override;
25   Status clean() override { return Status::OK; }
26   Status undo() override { return Status::OK; }
27   Status precheck() override { return Status::OK; }
28
29   STEP_NAME(Unmount)
30 };
31
32 }  // namespace mount
33 }  // namespace common_installer
34
35 #endif  // COMMON_STEP_MOUNT_STEP_UNMOUNT_H_