#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,
ExistingVersionEqual |
ExistingVersionNewer,
- PolicyForceInstall = PolicyAlwaysInstall
+ PolicyForceInstall = PolicyAlwaysInstall,
+ PolicyDirectoryForceInstall
};
inline Type operator | (const Type &a,
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)
{
}
};