[Release] wrt-installer_0.1.85
[platform/framework/web/wrt-installer.git] / src / misc / widget_location.h
index 2b44d4d..c3f8c39 100644 (file)
@@ -26,6 +26,7 @@
 #include <dpl/wrt-dao-ro/common_dao_types.h>
 #include <dpl/wrt-dao-ro/widget_dao_read_only.h>
 #include <wrt_common_types.h>
+#include <wrt_install_mode.h>
 
 /**
  * @brief The WidgetLocation class
@@ -101,12 +102,16 @@ class WidgetLocation
      */
     WidgetLocation(const std::string & widgetname, std::string sourcePath,
                    WrtDB::PackagingType t = WrtDB::PKG_TYPE_NOMAL_WEB_APP,
-                   bool isReadonly = false);
+                   bool isReadonly = false,
+                   InstallMode::ExtensionType eType =
+                   InstallMode::ExtensionType::WGT);
 
     WidgetLocation(const std::string & widgetname, std::string sourcePath,
                    std::string dirPath,
                    WrtDB::PackagingType t = WrtDB::PKG_TYPE_NOMAL_WEB_APP,
-                   bool isReadonly = false);
+                   bool isReadonly = false,
+                   InstallMode::ExtensionType eType =
+                   InstallMode::ExtensionType::WGT);
 
     ~WidgetLocation();
 
@@ -215,6 +220,7 @@ class WidgetLocation
     std::shared_ptr<DirectoryDeletor> m_temp;      //directory
     WrtDB::ExternalLocationList m_externals;
     std::string m_installedPath;
+    InstallMode::ExtensionType m_extensionType;
 };
 
 #endif // WRT_INSTALLER_SRC_MISC_WIDGET_LOCATION_H