summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore.h
Commit message (Collapse)AuthorAgeFilesLines
* Restart on the wizard needs to cleanup component left-oversTim Jenssen2013-11-061-1/+7
| | | | | | | | | | | | | | | - 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>
* rename forceRestart to needsHardRestartTim Jenssen2013-10-231-1/+2
| | | | | Change-Id: Ic3e3b6733f3d4e7bbf7b9a2715fd2d74fb3f9a2d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Force updating of Essential components.kh12013-08-141-1/+2
| | | | | | | | | | | | Task-number: QTIFW-38 Task-number: QTIFW-155 This is necessary for correct functioning of the Maintenance Tool. Change-Id: I3844760bdd31abf547c660f82dda14a3da38c5da Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Fix stupid mistake to use a private class in public API.kh12013-08-071-0/+2
| | | | | | | | Also a preparation the be able to implement the next commit. Change-Id: Iaeba54e5c1cfe97178e28fcc3fe72f9623f10bc6 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Fix broken model/component update due to wrong connected signals.Tim Jenssen2013-07-291-3/+2
| | | | | | | | | | - After 3eb3be the updater and the default model got the same components set once setRootComponents was emitted. The results was that both models would show all fetched components, not differentiating between updates and normal components. Change-Id: I053fdea73d42ca5ac1c2c26ebb063d9e7e415a13 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* introduce installerscriptengineTim Jenssen2013-05-161-0/+4
| | | | | | | | | | | - it uses one scriptengine for everything and adds the components or/and the install-controller in javascript closure contexts - added the gui object to the component script context - removed tabController from controlscript context Change-Id: I3bd6c5dcf470666c30add1b7d04a8fdd094f5f11 Reviewed-by: Iikka Eklund <iikka.eklund@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Remove RunMode enum, it's useless and clutters the API.kh12013-02-191-2/+0
| | | | | | Change-Id: I4323a0d66bda362ccee71a19352c37c9ac1b51e1 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Add a hook to the calculateComponent methodkh12013-02-071-0/+1
| | | | | | | | | | - with we can add dynamic dependcies (cherry-picked from commit 845487b31c45db458759a49bda566c64aee5faaa) Change-Id: I4df7e976c548655635081efa1a08dc7e64e58a83 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* Add 2013 to the copyright.Niels Weber2013-02-051-1/+1
| | | | | Change-Id: If64730ba7203d1a910a426c0d9c9a738ecfeff4b Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Change copyright headers from Nokia to DigiaSergio Ahumada2012-12-211-18/+27
| | | | | Change-Id: Id55a71a6ee24b234739b6066e11e9c1f2e389f73 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Add new commandline argument.kh12012-08-171-3/+3
| | | | | | | | | | | | In case we run an offline installer, --create-offline-repository will dump the whole installer content into the install directory and add an extra url to the repositories pointing to the mentioned local repository. This allows an offline user to add packages without the need of a new installation. Change-Id: I3e7eb0c56f632b74f5ea41b96bf3d9be83173f41 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* remove unused methodTim Jenssen2012-06-131-1/+0
| | | | | Change-Id: I7022626546cdf7baba77134934ab6e4e240dedfe Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* add working dir parameterMaurice Kalinowski2012-06-041-1/+2
| | | | | | | | sometimes it is useful to launch a process with a specified working directory. Only use this as an optional argument. Change-Id: I4eedd9b27713b9bc284f1945e67e115b5615640b Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* add killProcess methodTim Jenssen2012-05-071-0/+1
| | | | | | | | | - only implemented under windows where it could be needed for update - even the delete file method moves files to temp which can not be removed, it is much safer to kill the process Change-Id: Ide043657d5f74186da02cb18a87072b18910c964 Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* now we can setTempRepositories from script sideTim Jenssen2012-04-271-5/+2
| | | | | | | - this makes testing with autoscript more convenient Change-Id: I93e25570cd9f2b1431412a601476947fc9a046d9 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* now installer can disallow to install from a remote locationTim Jenssen2012-04-271-0/+3
| | | | | | | | | | | | - at the moment the implementation is windows only - in some cases it is problematically to install big installers from a remote location: if the connection is lost -> crash - the installer itself can have the flag DependsOnLocalInstallerBinary in the config.xml file - or a component can request that installer.setDependsOnLocalInstallerBinary() Change-Id: I0c8d70ca89dd55d2d0c52bf3418f11c95b5290a1 Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Add possibility to verify custom pages.Andreas Holzammer2012-04-251-0/+4
| | | | | | | | | Introduce setValidatorForCustomPage, to set a validator for a custom page. Change-Id: I24739d9544c20e0b2b1beab1ae90f8b98cc3d542 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* add the possibility to add a repository from script sideTim Jenssen2012-04-251-0/+3
| | | | | Change-Id: Ida419095138fcfb924210484c2bf2d1cb77fc55b Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Move the models inside core engine.kh12012-04-251-0/+7
| | | | | | | | Improves the situation for qml based installer. Change-Id: Ia7198f0720a1268c7918517228c13255cccce4ea Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* added file exists method to installer object in installerscriptsTim Jenssen2012-03-261-0/+1
| | | | | | Change-Id: Iba4d3fde8ed71d6361366604fd7773761da78b12 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com>
* Reorganize the tree, have better ifw.pri. Shadow build support.kh12012-03-191-0/+308
Change-Id: I01fb12537f863ed0744979973c7e4153889cc5cb Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>