diff -r 1e962b12a8db -r d2f833ab7940 contentstorage/casoftwareregistry/src/casoftwareregistry.cpp --- a/contentstorage/casoftwareregistry/src/casoftwareregistry.cpp Tue Jun 01 11:30:17 2010 +0300 +++ b/contentstorage/casoftwareregistry/src/casoftwareregistry.cpp Fri Jun 11 16:13:51 2010 +0300 @@ -15,8 +15,8 @@ * */ #include -#include #include +#include #include "casoftwareregistry.h" @@ -94,6 +94,53 @@ } /*! + Provides details needed for uninstalling process of Java applications. + \code + QSharedPointer service = CaSoftwareRegistry::create(); + int componentId(20); + QString &componentName, + QStringList applicationsUids; + QString confirmationMessage; + CaSoftwareRegistry::DetailMap detailMap = service->getUninstallDetails( + componentId, + componentName, + applicationsUids, + confirmationMessage); + \endcode + \param[in] componentId component id of an application to be uninstalled. + \param[out] componentName a name of the component. + \param[out] applicationsUids a list of uids of applications in the package + of the given component id. + \param[out] confirmationMessage optional deletion confirmation message, + null string means the lack of the message. + \retval true if there is no error. + */ +bool CaSoftwareRegistry::getUninstallDetails(int componentId, + QString &componentName, + QStringList &applicationsUids, + QString &confirmationMessage) +{ + return m_d->getUninstallDetails(componentId, + componentName, + applicationsUids, + confirmationMessage); +} + +/*! + Provides a list of uids of applications installed by the given package. + \param[in] componentId component id of an application to be uninstalled. + \param[out] applicationsUids a list of uids of applications in the package + of the given component id. + \retval true if there is no error. + */ + +bool CaSoftwareRegistry::getApplicationsUids(int componentId, + QStringList &applicationsUids) +{ + return m_d->getApplicationsUids(componentId, applicationsUids); +} + +/*! The method provides component details from USIF for a given component id. \code QSharedPointer service = CaSoftwareRegistry::create(); @@ -165,5 +212,3 @@ return key; } - -