TaskConfiguration refactoring - part 1/3
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 3 Sep 2013 12:05:07 +0000 (14:05 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 23 Sep 2013 07:49:00 +0000 (07:49 +0000)
commit158ab9eb261c1426fca0a713dd92bc485b708de1
tree8783bd604ee5c3ccc470a9740e2f17f205c0d956
parente20c33b10d04cd9f6184150f825673fecce07f92
TaskConfiguration refactoring - part 1/3

[Issue#]       LINUXWRT-820
[Feature]      Refactoring
[Cause]        Useless code in form of rethroing expections in failure task.
[Solution]     This change is solving:
 - JobWidgetInstall context clean up
 - removal of ConfigureResult type from TaskConfiguration (it was addded due to eceptions out of task scope)
 - removal task_installer_failure - this was step just to throw exceptions (exception have no need to be rethrown now)

This change makes clean up/reordering in TaskConfiguration, (now called) TaskProcessWidget is just to be fixed.

[Verification] Test installation for widget:
1. Widget with invalid config.xml -> see installation fail, notification from pkmgr if installed from myfiles.
2. Widget with malformed zip file -> see installation fail, notification from pkmgr if installed from myfiles.
3. Correct instalaltion and update of widget (widget have to has version for update if using same widget).

Change-Id: I035fb917004ffdb1a2fad0e201dc1f43a1c9a8f3
src/CMakeLists.txt
src/jobs/widget_install/job_widget_install.cpp
src/jobs/widget_install/job_widget_install.h
src/jobs/widget_install/task_configuration.cpp
src/jobs/widget_install/task_configuration.h
src/jobs/widget_install/task_installer_fail.cpp [deleted file]
src/jobs/widget_install/task_installer_fail.h [deleted file]
src/jobs/widget_install/widget_install_context.h