#include <job_base.h>
#include <job.h>
#include <widget_install/widget_install_errors.h>
+#include <wrt_install_mode.h>
#include <wrt_common_types.h>
#include <pkgmgr_signal_interface.h>
#include <memory>
ProgressPercent percent,
const ProgressDescription &);
-namespace InstallMode {
-enum Type
-{
- INSTALL_MODE_WGT = 0,
- INSTALL_MODE_DIRECTORY,
- INSTALL_MODE_PRELOAD,
- REINSTALL_MODE_DIRECTORY
-};
-}
-
//TODO into namespace
//InstallationStruct
typedef Jobs::JobCallbacksBase<InstallerFinishedCallback,
//Widget Installation Struct
struct WidgetInstallationStruct : public WidgetInstallCallbackBase
{
- InstallMode::Type m_installMode;
- bool m_quiet;
+ InstallMode m_installMode;
std::shared_ptr<PackageManager::IPkgmgrSignal> pkgmgrInterface;
// It must be empty-constructible as a parameter of generic event
- WidgetInstallationStruct() :
- m_installMode(InstallMode::Type::INSTALL_MODE_WGT),
- m_quiet(true)
- {}
-
+ WidgetInstallationStruct() {};
WidgetInstallationStruct(
InstallerFinishedCallback finished,
InstallerProgressCallback progress,
void *param,
- InstallMode::Type mode,
- bool quiet,
+ InstallMode mode,
std::shared_ptr<PackageManager::IPkgmgrSignal>
_pkgmgrInterface
) :
WidgetInstallCallbackBase(finished, progress, param),
m_installMode(mode),
- m_quiet(quiet),
pkgmgrInterface(_pkgmgrInterface)
{}
};