2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @file job_widget_install.h
18 * @author Radoslaw Wicik r.wicik@samsung.com
19 * @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
21 * @brief Implementation file for main installer task
23 #ifndef WRT_SRC_INSTALLER_CORE_JOB_JOB_WIDGET_INSTALL_H_
24 #define WRT_SRC_INSTALLER_CORE_JOB_JOB_WIDGET_INSTALL_H_
28 #include <dpl/utils/widget_version.h>
29 #include "widget_installer_struct.h"
30 #include <widget_install/widget_install_context.h>
32 using namespace Jobs::Exceptions;
35 namespace WidgetInstall {
37 typedef JobProgressBase<InstallerContext::InstallStep, InstallerContext::INSTALL_END> InstallerBase;
38 typedef JobContextBase<Jobs::WidgetInstall::WidgetInstallationStruct> WidgetInstallationBase;
40 class JobWidgetInstall :
43 public WidgetInstallationBase
47 InstallerContext m_installerContext;
49 Jobs::Exceptions::Type m_exceptionCaught;
50 std::string m_exceptionMessage;
54 * @brief Automaticaly sets installation process
56 JobWidgetInstall(std::string const & widgetPath,
57 std::string const &tzPkgId,
58 const Jobs::WidgetInstall::WidgetInstallationStruct &installerStruct);
62 void SendFinishedSuccess();
63 void SendFinishedFailure();
64 void SendProgressIconPath(const std::string &path);
66 void SaveExceptionData(const Jobs::JobExceptionBase&);
67 void displayWidgetInfo();
70 void appendNewInstallationTaskList();
71 void appendUpdateInstallationTaskList();
72 void appendRDSUpdateTaskList();
73 void appendRecoveryTaskList();
74 void appendFotaInstallationTaskList();
75 void appendFotaUpdateTaskList();
77 } //namespace WidgetInstall
80 #endif // WRT_SRC_INSTALLER_CORE_JOB_JOB_WIDGET_INSTALL_H_