contentstorage/casoftwareregistry/src/casoftwareregistry.cpp
changeset 103 b99b84bcd2d1
parent 80 397d00875918
child 102 8b8b34fa9751
child 109 e0aa398e6810
equal deleted inserted replaced
83:156f692b1687 103:b99b84bcd2d1
    13  *
    13  *
    14  * Description:  ?Description
    14  * Description:  ?Description
    15  *
    15  *
    16  */
    16  */
    17 #include <QtGlobal>
    17 #include <QtGlobal>
    18 #include <QMetaType>
       
    19 #include <QString>
    18 #include <QString>
       
    19 #include <QStringList>
    20 
    20 
    21 
    21 
    22 #include "casoftwareregistry.h"
    22 #include "casoftwareregistry.h"
    23 #include "casoftwareregistry_p.h"
    23 #include "casoftwareregistry_p.h"
    24 
    24 
    89  Destructor.
    89  Destructor.
    90  */
    90  */
    91 CaSoftwareRegistry::~CaSoftwareRegistry()
    91 CaSoftwareRegistry::~CaSoftwareRegistry()
    92 {
    92 {
    93     delete m_d;
    93     delete m_d;
       
    94 }
       
    95 
       
    96 /*!
       
    97  Provides details needed for uninstalling process of Java applications.
       
    98  \code
       
    99  QSharedPointer<CaSoftwareRegistry> service = CaSoftwareRegistry::create();
       
   100  int componentId(20);
       
   101  QString &componentName,
       
   102  QStringList applicationsUids;
       
   103  QString confirmationMessage;
       
   104  CaSoftwareRegistry::DetailMap detailMap = service->getUninstallDetails(
       
   105     componentId,
       
   106     componentName,
       
   107     applicationsUids,
       
   108     confirmationMessage);
       
   109  \endcode
       
   110  \param[in] componentId component id of an application to be uninstalled.
       
   111  \param[out] componentName a name of the component.
       
   112  \param[out] applicationsUids a list of uids of applications in the package
       
   113       of the given component id.
       
   114  \param[out] confirmationMessage optional deletion confirmation message,
       
   115       null string means the lack of the message.
       
   116  \retval true if there is no error.
       
   117  */
       
   118 bool CaSoftwareRegistry::getUninstallDetails(int componentId,
       
   119     QString &componentName,
       
   120     QStringList &applicationsUids,
       
   121     QString &confirmationMessage)
       
   122 {
       
   123     return m_d->getUninstallDetails(componentId,
       
   124         componentName,
       
   125         applicationsUids,
       
   126         confirmationMessage);
       
   127 }
       
   128 
       
   129 /*!
       
   130  Provides a list of uids of applications installed by the given package.
       
   131  \param[in] componentId component id of an application to be uninstalled.
       
   132  \param[out] applicationsUids a list of uids of applications in the package
       
   133       of the given component id.
       
   134  \retval true if there is no error.
       
   135  */
       
   136 
       
   137 bool CaSoftwareRegistry::getApplicationsUids(int componentId,
       
   138     QStringList &applicationsUids)
       
   139 {
       
   140     return m_d->getApplicationsUids(componentId, applicationsUids);
    94 }
   141 }
    95 
   142 
    96 /*!
   143 /*!
    97  The method provides component details from USIF for a given component id.
   144  The method provides component details from USIF for a given component id.
    98  \code
   145  \code
   163 {
   210 {
   164     static const QString key("type");
   211     static const QString key("type");
   165     return key;
   212     return key;
   166 }
   213 }
   167 
   214 
   168 
       
   169