-void TaskWidgetConfig::StepCancelWidgetInstallationAfterVerifyFeatures()
-{
- LogDebug("StepCancelWidgetInstallationAfterVerifyFeatures");
- if (InfoPopupButton::WRT_POPUP_BUTTON_CANCEL == m_installCancel) {
- m_installCancel = WRT_POPUP_BUTTON;
- destroyPopup();
- ThrowMsg(Exceptions::WidgetConfigFileInvalid, "Widget not allowed");
- }
-}
-
-void TaskWidgetConfig::StepCancelWidgetInstallation()
-{
- if (InfoPopupButton::WRT_POPUP_BUTTON_CANCEL == m_installCancel) {
- m_installCancel = WRT_POPUP_BUTTON;
- destroyPopup();
- ThrowMsg(Exceptions::NotAllowed, "Widget not allowed");
- }
-}
-
-void TaskWidgetConfig::StepCancelWidgetInstallationAfterMinVersion()
-{
- if (InfoPopupButton::WRT_POPUP_BUTTON_CANCEL == m_installCancel) {
- m_installCancel = WRT_POPUP_BUTTON;
- destroyPopup();
- ThrowMsg(Exceptions::NotAllowed, "WRT version incompatible.");
- }
-}
-
-void TaskWidgetConfig::createInstallPopup(PopupType type,
- const std::string &label)
-{
- m_installContext.job->Pause();
- if (m_popup) {
- destroyPopup();
- }
-
- bool ret = createPopup();
- if (ret) {
- loadPopup(type, label);
- showPopup();
- }
-}
-
-void TaskWidgetConfig::StepDeletePopupWin()
-{
- destroyPopup();
-}
-
-void TaskWidgetConfig::StepShowWidgetInfo()
-{
- if (!m_popupData.widgetInfo.empty()) {
- std::string label = DPL::ToUTF8String(m_popupData.widgetInfo);
- createInstallPopup(PopupType::WIDGET_FEATURE_INFO, label);
- m_installContext.job->UpdateProgress(
- InstallerContext::INSTALL_WIDGET_CONFIG2,
- "Show Widget Info Finished");
- }
-}
-