Fix Mount Installation Failure
[platform/core/appfw/wgt-backend.git] / src / wgt / wgt_installer.h
1 // Copyright (c) 2015 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 WGT_WGT_INSTALLER_H_
6 #define WGT_WGT_INSTALLER_H_
7
8 #include <common/app_installer.h>
9
10 namespace wgt {
11
12 /**
13  * \brief The WgtInstaller class
14  *        Subclass of AppInstaller class dedicated for handling wgt request
15  *
16  * Performs all types of requests of wgt packages and sets required sequence of
17  * steps
18  */
19 class WgtInstaller : public common_installer::AppInstaller {
20  public:
21   /**
22    * \brief Explicit constructor
23    *
24    * \param pkgmgr pointer to pkgmgr
25    */
26   explicit WgtInstaller(common_installer::PkgMgrPtr pkgrmgr);
27
28  private:
29   void InstallSteps();
30   void UpdateSteps();
31   void UninstallSteps();
32   void ReinstallSteps();
33   void DeltaSteps();
34   void RecoverySteps();
35   void MountInstallSteps();
36   void MountUpdateSteps();
37   void ManifestDirectInstallSteps();
38   void ManifestDirectUpdateSteps();
39   void ReadonlyUpdateInstallSteps();
40   void ReadonlyUpdateUninstallSteps();
41   void ManifestPartialInstallSteps();
42   void ManifestPartialUpdateSteps();
43   void ManifestPartialUninstallSteps();
44   void MoveSteps();
45   void EnablePkgSteps();
46   void DisablePkgSteps();
47   void MigrateExtImgSteps();
48   void DefaultSteps();
49 };
50
51 }  // namespace wgt
52
53 #endif  // WGT_WGT_INSTALLER_H_