diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2011-07-26 16:33:55 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2011-07-27 14:25:58 +0200 |
commit | 02b859b819343cd0c5da300ea6ac3589d9316112 (patch) | |
tree | 2481d9fa5895b6353f51dc443a867be31a097bb9 /installerbuilder/libinstaller/component.cpp | |
parent | 31b7d64b278c81d720fc931a180ddd7281888a95 (diff) |
added an updateIsAvailable flag to component class
Reviewed-By: Niels Weber
Diffstat (limited to 'installerbuilder/libinstaller/component.cpp')
-rw-r--r-- | installerbuilder/libinstaller/component.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/installerbuilder/libinstaller/component.cpp b/installerbuilder/libinstaller/component.cpp index ad5473ca0..533607357 100644 --- a/installerbuilder/libinstaller/component.cpp +++ b/installerbuilder/libinstaller/component.cpp @@ -987,7 +987,23 @@ bool Component::installationRequested() const } /*! - Set's the components state to uninstalled. + Sets a flag that the core found an update +*/ +void Component::setUpdateAvailable(bool isUpdateAvailable) +{ + d->m_updateIsAvailable = isUpdateAvailable; +} + +/*! + Determines if the user wants to install the update for this component +*/ +bool Component::updateRequested() +{ + return d->m_updateIsAvailable && isSelected(); +} + +/*! + Sets the component state to uninstalled. */ void Component::setUninstalled() { |