diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2011-10-31 13:39:21 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2011-10-31 16:52:09 +0100 |
commit | 7c7638997f249e4cbca8ef03ac99e37e16daea1b (patch) | |
tree | 3db2d56e8ed8e5af11551d483cddd5ff5a92f394 /installerbuilder | |
parent | b5ac95d8350d73711c249892767172ec94b4f27a (diff) |
added contentChangeRequested on the component class
Change-Id: Ie637e9415b48f028f43d32989a2f133572792866
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'installerbuilder')
-rw-r--r-- | installerbuilder/libinstaller/component.cpp | 9 | ||||
-rw-r--r-- | installerbuilder/libinstaller/component.h | 6 |
2 files changed, 13 insertions, 2 deletions
diff --git a/installerbuilder/libinstaller/component.cpp b/installerbuilder/libinstaller/component.cpp index 2a56f1fb9..93ea0dfbc 100644 --- a/installerbuilder/libinstaller/component.cpp +++ b/installerbuilder/libinstaller/component.cpp @@ -1039,6 +1039,15 @@ bool Component::updateRequested() } /*! + Returns true if that component will be changed (update/installation/uninstallation) +*/ +bool Component::componentChangeRequested() +{ + return updateRequested() || installationRequested() || uninstallationRequested(); +} + + +/*! Sets the component state to uninstalled. */ void Component::setUninstalled() diff --git a/installerbuilder/libinstaller/component.h b/installerbuilder/libinstaller/component.h index 53388989e..bee578e99 100644 --- a/installerbuilder/libinstaller/component.h +++ b/installerbuilder/libinstaller/component.h @@ -172,8 +172,10 @@ public: Q_INVOKABLE bool isFromOnlineRepository() const; - void setUpdateAvailable(bool isUpdateAvailable); - bool updateRequested(); + Q_INVOKABLE void setUpdateAvailable(bool isUpdateAvailable); + Q_INVOKABLE bool updateRequested(); + + Q_INVOKABLE bool componentChangeRequested(); bool isVirtual() const; |