void Job::SendFinishedFailure()
{}
+void Job::SendProgressIconPath(const std::string &path)
+{}
+
void Job::SaveExceptionData(const Jobs::JobExceptionBase&)
{}
} //namespace Jobs
virtual void SendProgress();
virtual void SendFinishedSuccess();
virtual void SendFinishedFailure();
+ virtual void SendProgressIconPath(const std::string &path);
virtual void SaveExceptionData(const Jobs::JobExceptionBase&);
}
}
+void JobWidgetInstall::SendProgressIconPath(const std::string &path)
+{
+ using namespace PackageManager;
+ if (GetProgressFlag() != false) {
+ if (getInstallerStruct().progressCallback != NULL) {
+ // send progress signal of pkgmgr
+ getInstallerStruct().pkgmgrInterface->sendSignal(
+ PKGMGR_ICON_PATH,
+ path);
+ }
+ }
+}
+
void JobWidgetInstall::SendFinishedSuccess()
{
using namespace PackageManager;
void SendProgress();
void SendFinishedSuccess();
void SendFinishedFailure();
+ void SendProgressIconPath(const std::string &path);
void SaveExceptionData(const Jobs::JobExceptionBase&);
};
} //namespace WidgetInstall
} else {
uiApp.addIcon(IconType(iconText));
}
+ std::ostringstream iconPath;
+ iconPath << GlobalConfig::GetUserWidgetDesktopIconPath() << "/";
+ iconPath << getIconTargetFilename(locale);
+ m_context.job->SendProgressIconPath(iconPath.str());
}
void TaskManifestFile::setWidgetManifest(Manifest & manifest)
#define PKGMGR_END_SUCCESS "ok"
#define PKGMGR_END_FAILURE "fail"
#define PKGMGR_PROGRESS_KEY "install_percent"
+#define PKGMGR_ICON_PATH "icon_path"
typedef pkgmgr_installer* PkgmgrHandle;