Restart on the wizard needs to cleanup component left-overs
authorTim Jenssen <tim.jenssen@digia.com>
Wed, 6 Nov 2013 11:45:23 +0000 (12:45 +0100)
committerTim Jenssen <tim.jenssen@digia.com>
Wed, 6 Nov 2013 15:51:35 +0000 (16:51 +0100)
commit016cdad413c878be9c669398cd707ff5d1d98255
tree384a45a3ecd01fe5b071aca445dfca9cff59a731
parent0e63df370ec23e793c0bfb27c469f2606fbf104a
Restart on the wizard needs to cleanup component left-overs

  - use two different script engine instances
    - one which lives from the beginning -> the controlScriptEngine
    - the other one which will be reset if there are some new repositories
      loaded
  - now the core has a pointer to the gui object, but it should only be
    used by the script engine so a QObject type should be enough
  - engines are deleted as QObject children from the PackageManagerCore
  - registered downloaded archives are removed

Change-Id: I60a4a32fb2e409059839ec11b10c57357454f57a
Reviewed-by: Michal Klocek <michal.klocek@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
12 files changed:
src/libs/installer/binaryformatenginehandler.cpp
src/libs/installer/binaryformatenginehandler.h
src/libs/installer/component.cpp
src/libs/installer/component_p.cpp
src/libs/installer/component_p.h
src/libs/installer/packagemanagercore.cpp
src/libs/installer/packagemanagercore.h
src/libs/installer/packagemanagercore_p.cpp
src/libs/installer/packagemanagercore_p.h
src/libs/installer/packagemanagergui.cpp
src/libs/installer/scriptengine.cpp
tests/auto/installer/scriptengine/tst_scriptengine.cpp