Tizen 2.1 base
[platform/framework/web/wrt-installer.git] / src / jobs / widget_install / widget_installer_struct.h
old mode 100644 (file)
new mode 100755 (executable)
index 33674ad..2a655c8
 #include <job.h>
 #include <widget_install/widget_install_errors.h>
 #include <wrt_common_types.h>
+#include <pkgmgr_signal_interface.h>
+#include <memory>
+#include <string>
 
 //Widget Installer typedefs
 typedef void (*InstallerFinishedCallback)(
     void *userParam,
-    WidgetHandle,
+    std::string tizenId,
     Jobs::WidgetInstall::Exceptions::Type);
 
 typedef void (*InstallerProgressCallback)(void *userParam,
@@ -70,7 +73,8 @@ enum Type
         ExistingVersionEqual |
         ExistingVersionNewer,
 
-    PolicyForceInstall = PolicyAlwaysInstall
+    PolicyForceInstall = PolicyAlwaysInstall,
+    PolicyDirectoryForceInstall
 };
 
 inline Type operator | (const Type &a,
@@ -98,18 +102,30 @@ WidgetInstallCallbackBase;
 struct WidgetInstallationStruct : public WidgetInstallCallbackBase
 {
     WidgetUpdateMode::Type updateMode;
+    bool m_quiet;
+    bool m_preload;
+    std::shared_ptr<PackageManager::IPkgmgrSignal> pkgmgrInterface;
 
     // It must be empty-constructible as a parameter of generic event
-    WidgetInstallationStruct() : updateMode(WidgetUpdateMode::Zero)
+    WidgetInstallationStruct() : updateMode(WidgetUpdateMode::Zero),
+                                m_quiet(true),
+                                m_preload(false)
     {
     }
 
     WidgetInstallationStruct(InstallerFinishedCallback finished,
             InstallerProgressCallback progress,
             void *param,
-            WidgetUpdateMode::Type mode) :
+            WidgetUpdateMode::Type mode,
+            bool quiet,
+            bool preload,
+            std::shared_ptr<PackageManager::IPkgmgrSignal> _pkgmgrInterface
+            ) :
         WidgetInstallCallbackBase(finished, progress, param),
-        updateMode(mode)
+        updateMode(mode),
+        m_quiet(quiet),
+        m_preload(preload),
+        pkgmgrInterface(_pkgmgrInterface)
     {
     }
 };