summaryrefslogtreecommitdiffstats
path: root/src/libs/kdtools/kdupdaterpackagesinfo.cpp
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>2015-01-30 13:50:47 +0100
committerLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>2015-01-30 14:47:33 +0000
commitd7bdbb1b3a49873ab8feae16d4e1a9ae09bf17b5 (patch)
tree7e8f1fd9ee084f98d5df744cd115032f223338e7 /src/libs/kdtools/kdupdaterpackagesinfo.cpp
parent93a10096f82b9a187fc5bf31a65394033696fb72 (diff)
Doc: add docs for arguments and return values
To get rid of QDoc errors. Change-Id: I4932f1f3ff5fab87eebf24536d63be550582b195 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/kdtools/kdupdaterpackagesinfo.cpp')
-rw-r--r--src/libs/kdtools/kdupdaterpackagesinfo.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/libs/kdtools/kdupdaterpackagesinfo.cpp b/src/libs/kdtools/kdupdaterpackagesinfo.cpp
index 6eb32f1e3..b19146660 100644
--- a/src/libs/kdtools/kdupdaterpackagesinfo.cpp
+++ b/src/libs/kdtools/kdupdaterpackagesinfo.cpp
@@ -325,7 +325,11 @@ void PackagesInfo::refresh()
}
/*!
- Marks the package with \a name and \a version as installed.
+ Marks the package specified by \a name as installed. Sets the values of
+ \a version, \a title, \a description, \a dependencies, \a forcedInstallation,
+ \a virtualComp, \a uncompressedSize, and \a inheritVersionFrom for the
+ package.
+
*/
bool PackagesInfo::installPackage(const QString &name, const QString &version,
const QString &title, const QString &description,
@@ -353,8 +357,10 @@ bool PackagesInfo::installPackage(const QString &name, const QString &version,
}
/*!
- Updates the package and sets the package name to \a name, the version to \a version and the
- last update date to \a date.
+ Updates the package specified by \a name and sets its version to \a version
+ and the last update date to \a date.
+
+ Returns \c false if the package is not found.
*/
bool PackagesInfo::updatePackage(const QString &name, const QString &version, const QDate &date)
{
@@ -370,7 +376,9 @@ bool PackagesInfo::updatePackage(const QString &name, const QString &version, co
}
/*!
- Remove the package with \a name.
+ Removes the package specified by \a name.
+
+ Returns \c false if the package is not found.
*/
bool PackagesInfo::removePackage(const QString &name)
{