Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / installer_context.h
index c7e03bf..816a98e 100644 (file)
@@ -6,14 +6,13 @@
 #ifndef COMMON_INSTALLER_CONTEXT_H_
 #define COMMON_INSTALLER_CONTEXT_H_
 
-#include <boost/filesystem/path.hpp>
-
 #include <pkgmgr_parser.h>
 
 #include <unistd.h>
 #include <sys/types.h>
 #include <vcore/Certificate.h>
 
+#include <filesystem>
 #include <memory>
 #include <string>
 #include <utility>
@@ -118,7 +117,7 @@ class RecoveryInfo {
    * \param path path of recovery file to be created
    * \param recovery_cleanup path of recovery file to be created
    */
-  explicit RecoveryInfo(const boost::filesystem::path& path,
+  explicit RecoveryInfo(const std::filesystem::path& path,
       bool recovery_cleanup = false)
       : filepath(path), cleanup(recovery_cleanup) {
   }
@@ -127,7 +126,7 @@ class RecoveryInfo {
   std::unique_ptr<recovery::RecoveryFile> recovery_file;
 
   /** path of recovery file to be created */
-  boost::filesystem::path filepath;
+  std::filesystem::path filepath;
 
   /** cleanup flag delivered by global recovery file */
   bool cleanup;
@@ -200,7 +199,7 @@ class InstallerContext {
   /**
    * \brief Returns package directory path containing app data
    */
-  inline boost::filesystem::path GetPkgPath() const {
+  inline std::filesystem::path GetPkgPath() const {
     return root_application_path.get() / pkgid.get();
   }
 
@@ -238,24 +237,24 @@ class InstallerContext {
   /**
    * \brief path to xml platform manifest which was generated according
    *        to maniest_data content */
-  Property<boost::filesystem::path> xml_path;
+  Property<std::filesystem::path> xml_path;
 
   /**
    * \brief path to backup xml platform manifest which was generated
    *        according to old_maniest_data content (needed for rollback
    *        operations)
    */
-  Property<boost::filesystem::path> backup_xml_path;
+  Property<std::filesystem::path> backup_xml_path;
 
   /**
    * \brief file path used for installation or reinstallation process
    */
-  Property<boost::filesystem::path> file_path;
+  Property<std::filesystem::path> file_path;
 
   /**
    * \brief tep file path used for TEP installation process
    */
-  Property<boost::filesystem::path> tep_path;
+  Property<std::filesystem::path> tep_path;
 
   /**
   * \brief boolean property that indicates tep file should be moved or not
@@ -276,7 +275,7 @@ class InstallerContext {
    * \brief path to temporary directory when package files are unpacked
    *        before coping them to final destination
    */
-  Property<boost::filesystem::path> unpacked_dir_path;
+  Property<std::filesystem::path> unpacked_dir_path;
 
   /**
    * \brief uid of user which installation was triggered for
@@ -289,7 +288,7 @@ class InstallerContext {
    *        (${TZ_USER_HOME}/${USER}/apps_rw/) or
    *        tizenglobalapp user (${TZ_SYS_RO_APP} or ${TZ_SYS_RW_APP})
    */
-  Property<boost::filesystem::path> root_application_path;
+  Property<std::filesystem::path> root_application_path;
 
   /**
    * \brief "void*-like" structure to store backend specific