Fix update detection in app-installers 07/41807/3
authorTomasz Iwanek <t.iwanek@samsung.com>
Wed, 10 Jun 2015 12:49:03 +0000 (14:49 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Thu, 18 Jun 2015 10:50:44 +0000 (12:50 +0200)
commitcaa923a6d7ab393ec4c01f42421039f671d603ed
treea5e4c494997f9bbe8588f4a889b90c19c2e9e1e8
parent2585733fb42fd4b83fbf6162018ad118cb3e0335
Fix update detection in app-installers

app-installers will need to detect update by itself to set
correct step for installation process. Therefore this patch
integrates previous workaround into common library code.

This will not requires changes in pkgmgr.

Introducing AppQueryInterface for each backend to provide.
This class will decide if update installation flow should
be forced or not. If pkgmgr backendlib would be developed
then this interface will require refactoring probably.

Please, note that tpk will need to provide own
AppQueryInterface instance.

Change-Id: Ic8d09b72227310fa4eb76bce882302c4291495d8
src/common/app_query_interface.h [new file with mode: 0644]
src/common/pkgmgr_interface.cc
src/common/pkgmgr_interface.h
src/wgt/CMakeLists.txt
src/wgt/update_workaround.h [deleted file]
src/wgt/wgt_app_query_interface.cc [moved from src/wgt/update_workaround.cc with 77% similarity]
src/wgt/wgt_app_query_interface.h [new file with mode: 0644]
src/wgt/wgt_backend.cc