Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / pkgmgr_interface.h
index e085018..78a93c9 100644 (file)
@@ -5,14 +5,13 @@
 #ifndef COMMON_PKGMGR_INTERFACE_H_
 #define COMMON_PKGMGR_INTERFACE_H_
 
-#include <boost/filesystem/path.hpp>
-#include <boost/none.hpp>
-#include <boost/optional/optional.hpp>
 #include <manifest_parser/utils/logging.h>
 #include <pkgmgr_installer.h>
 
+#include <filesystem>
 #include <map>
 #include <memory>
+#include <optional>
 #include <string>
 
 #include "common/app_query_interface.h"
@@ -138,7 +137,7 @@ class PkgMgrInterface {
   *
   * \return TEP path retrieved from pkgmgr_installer
   */
-  boost::filesystem::path GetTepPath() const;
+  std::filesystem::path GetTepPath() const;
 
   /**
   * Returns True if TEP file should be moved. Otherwise, return false
@@ -270,14 +269,14 @@ class PkgMgrInterface {
                            std::shared_ptr<AppQueryInterface> interface)
       : pi_(nullptr),
         install_mode_(InstallationMode::ONLINE),
-        is_app_installed_(boost::none),
+        is_app_installed_(std::nullopt),
         pkgmgr_installer_interface_(pkgmgr_installer_interface),
         query_interface_(interface) {}
   int InitInternal(int argc, char** argv);
 
   pkgmgr_installer* pi_;
   InstallationMode install_mode_;
-  mutable boost::optional<bool> is_app_installed_;
+  mutable std::optional<bool> is_app_installed_;
   PkgmgrInstallerInterface* pkgmgr_installer_interface_;
 
   std::shared_ptr<AppQueryInterface> query_interface_;