* limitations under the License.
*/
/*
- * @file task_certificates.h
- * @author Leerang Song(leerang.song@samsung.com)
- * @version 1.0
- * @brief Header file for installer task certificates
+ * @file task_pkg_info_update.h
+ * @author soyoung kim (sy037.kim@samsung.com)
+ * @version 1.0
*/
-#ifndef INSTALLER_CORE_JOS_WIDGET_INSTALL_TASK_CERTIFICATES_H
-#define INSTALLER_CORE_JOS_WIDGET_INSTALL_TASK_CERTIFICATES_H
-#include <dpl/task.h>
-#include <dpl/event/inter_context_delegate.h>
-#include <dpl/foreach.h>
-#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
+#ifndef SRC_JOBS_WIDGET_INSTALL_TASK_PKG_INFO_UPDATE_H_
+#define SRC_JOBS_WIDGET_INSTALL_TASK_PKG_INFO_UPDATE_H_
+#include <dpl/task.h>
+#include <string>
#include <pkgmgr_installer.h>
-using namespace WrtDB;
class InstallerContext;
namespace Jobs {
namespace WidgetInstall {
-class TaskCertificates :
- public DPL::TaskDecl<TaskCertificates>,
- public DPL::Event::ICDelegateSupport<TaskCertificates>
+class TaskPkgInfoUpdate : public DPL::TaskDecl<TaskPkgInfoUpdate>
{
private:
- InstallerContext& m_context;
+ // Installation context
+ InstallerContext &m_context;
+ void StepPkgInfo();
void StepSetCertiInfo();
+ void SetCertiInfo(int source);
+ void StepSetEndofInstallation();
+
+ void stepAbortParseManifest();
void StepAbortCertiInfo();
- void SetCertiInfo(CertificateSource source);
+
+ void StartStep();
+ void EndStep();
pkgmgr_instcertinfo_h m_pkgHandle;
+ std::string m_manifest;
public:
- TaskCertificates(InstallerContext& context);
+ explicit TaskPkgInfoUpdate(InstallerContext &installerContext);
};
-} //namespace WidgetInstall
-} //namespace Jobs
-
-#endif /* INSTALLER_CORE_JOS_WIDGET_INSTALL_TASK_CERTIFICATES_H */
+} // namespace WidgetInstall
+} // namespace Jobs
+#endif /* SRC_JOBS_WIDGET_INSTALL_TASK_PKG_INFO_UPDATE_H_ */