Move test codes
[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/installer/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   std::unique_ptr<common_installer::ArchiveInfo> GetArchiveInfo() override;
28
29  protected:
30   void InstallSteps() override;
31   void UpdateSteps() override;
32   void UninstallSteps() override;
33   void ReinstallSteps() override;
34   void DeltaSteps() override;
35   void MoveSteps() override;
36   void RecoverySteps() override;
37   void MountInstallSteps() override;
38   void MountUpdateSteps() override;
39   void ManifestDirectInstallSteps() override;
40   void ManifestDirectUpdateSteps() override;
41   void ManifestPartialInstallSteps() override;
42   void ManifestPartialUpdateSteps() override;
43   void PartialUninstallSteps() override;
44   void ReadonlyUpdateInstallSteps() override;
45   void ReadonlyUpdateUninstallSteps() override;
46   void DisablePkgSteps() override;
47   void EnablePkgSteps() override;
48   void MigrateExtImgSteps() override;
49   void RecoverDBSteps() override;
50 };
51
52 }  // namespace wgt
53
54 #endif  // WGT_WGT_INSTALLER_H_