contentstorage/casoftwareregistry/stub/src/casoftwareregistry_p.cpp
changeset 109 e0aa398e6810
parent 103 b99b84bcd2d1
equal deleted inserted replaced
104:9b022b1f357c 109:e0aa398e6810
    16  */
    16  */
    17 #include <QtGlobal>
    17 #include <QtGlobal>
    18 #include <QMetaType>
    18 #include <QMetaType>
    19 #include <QStringList>
    19 #include <QStringList>
    20 
    20 
    21 
    21 #include "cauninstallnotifier.h"
       
    22 #include "cauninstallnotifier_p.h"
    22 #include "casoftwareregistry.h"
    23 #include "casoftwareregistry.h"
    23 #include "casoftwareregistry_p.h"
    24 #include "casoftwareregistry_p.h"
    24 
    25 
    25 
    26 
    26 /*
    27 /*
    86  */
    87  */
    87 CaSoftwareRegistryPrivate::DetailMap CaSoftwareRegistryPrivate::entryDetails(
    88 CaSoftwareRegistryPrivate::DetailMap CaSoftwareRegistryPrivate::entryDetails(
    88     int componentId) const
    89     int componentId) const
    89 {
    90 {
    90     CaSoftwareRegistry::DetailMap detailMap;
    91     CaSoftwareRegistry::DetailMap detailMap;
    91     
    92 
    92     if (componentId >=1) {
    93     if (componentId >=1) {
    93         detailMap[CaSoftwareRegistry::componentNameKey()] = "no data";
    94         detailMap[CaSoftwareRegistry::componentNameKey()]       = "no data";
    94             
    95         detailMap[CaSoftwareRegistry::componentVersionKey()]    = "no data";
    95         detailMap[CaSoftwareRegistry::componentVersionKey()] = "no data";
    96         detailMap[CaSoftwareRegistry::componentVendorKey()]     = "no data";
    96         
    97 		detailMap[CaSoftwareRegistry::componentProtectionDomainKey()] = "no data";
    97         detailMap[CaSoftwareRegistry::componentVendorKey()] = "no data";
    98         detailMap[CaSoftwareRegistry::componentDriveInfoKey()]  = "no data";
    98                 
    99         detailMap[CaSoftwareRegistry::componentSizeKey()]       = "no data";
    99         detailMap[CaSoftwareRegistry::componentDriveInfoKey()] = "no data";
   100         detailMap[CaSoftwareRegistry::componentTypeKey()]       = "no data";
   100         
   101         detailMap[CaSoftwareRegistry::componentDescriptionKey()] = "no data";
   101         detailMap[CaSoftwareRegistry::componentSizeKey()] = "no data";
       
   102         
       
   103         detailMap[CaSoftwareRegistry::componentTypeKey()] = "no data";
       
   104     }
   102     }
   105     return detailMap;    
   103     return detailMap;
   106 }
   104 }
   107 
   105 
       
   106 /*!
       
   107  \param entry Software registry entry providing details.
       
   108  \return Map with details for the component represented by \entry.
       
   109  */
       
   110 QList<CaSoftwareRegistryPrivate::DetailMap>
       
   111         CaSoftwareRegistryPrivate::retrieveLogEntries() const
       
   112 {
       
   113     QList<CaSoftwareRegistryPrivate::DetailMap> logList;
       
   114     DetailMap logMap;
       
   115     logMap[CaSoftwareRegistry::componentNameKey()]          = "no data";
       
   116     logMap[CaSoftwareRegistry::componentVersionKey()]       = "no data";
       
   117     logMap[CaSoftwareRegistry::componentTimeKey()]          = "no data";
       
   118     logMap[CaSoftwareRegistry::componentOperationTypeKey()] = "no data";
       
   119     logList.append(logMap);
       
   120     return logList;
       
   121 }
       
   122 
       
   123 /*!
       
   124  Creating uninstall notifier
       
   125  \return CaUninstallNotifier instance
       
   126  */
       
   127 CaUninstallNotifier *CaSoftwareRegistryPrivate::createUninstallNotifier() const
       
   128 {
       
   129     return CaUninstallNotifier::notifier();
       
   130 }