contentstorage/casoftwareregistry/stub/src/casoftwareregistry_p.cpp
changeset 109 e0aa398e6810
parent 103 b99b84bcd2d1
--- a/contentstorage/casoftwareregistry/stub/src/casoftwareregistry_p.cpp	Tue Jul 06 14:37:10 2010 +0300
+++ b/contentstorage/casoftwareregistry/stub/src/casoftwareregistry_p.cpp	Wed Aug 18 10:05:49 2010 +0300
@@ -18,7 +18,8 @@
 #include <QMetaType>
 #include <QStringList>
 
-
+#include "cauninstallnotifier.h"
+#include "cauninstallnotifier_p.h"
 #include "casoftwareregistry.h"
 #include "casoftwareregistry_p.h"
 
@@ -88,20 +89,42 @@
     int componentId) const
 {
     CaSoftwareRegistry::DetailMap detailMap;
-    
+
     if (componentId >=1) {
-        detailMap[CaSoftwareRegistry::componentNameKey()] = "no data";
-            
-        detailMap[CaSoftwareRegistry::componentVersionKey()] = "no data";
-        
-        detailMap[CaSoftwareRegistry::componentVendorKey()] = "no data";
-                
-        detailMap[CaSoftwareRegistry::componentDriveInfoKey()] = "no data";
-        
-        detailMap[CaSoftwareRegistry::componentSizeKey()] = "no data";
-        
-        detailMap[CaSoftwareRegistry::componentTypeKey()] = "no data";
+        detailMap[CaSoftwareRegistry::componentNameKey()]       = "no data";
+        detailMap[CaSoftwareRegistry::componentVersionKey()]    = "no data";
+        detailMap[CaSoftwareRegistry::componentVendorKey()]     = "no data";
+		detailMap[CaSoftwareRegistry::componentProtectionDomainKey()] = "no data";
+        detailMap[CaSoftwareRegistry::componentDriveInfoKey()]  = "no data";
+        detailMap[CaSoftwareRegistry::componentSizeKey()]       = "no data";
+        detailMap[CaSoftwareRegistry::componentTypeKey()]       = "no data";
+        detailMap[CaSoftwareRegistry::componentDescriptionKey()] = "no data";
     }
-    return detailMap;    
+    return detailMap;
 }
 
+/*!
+ \param entry Software registry entry providing details.
+ \return Map with details for the component represented by \entry.
+ */
+QList<CaSoftwareRegistryPrivate::DetailMap>
+        CaSoftwareRegistryPrivate::retrieveLogEntries() const
+{
+    QList<CaSoftwareRegistryPrivate::DetailMap> logList;
+    DetailMap logMap;
+    logMap[CaSoftwareRegistry::componentNameKey()]          = "no data";
+    logMap[CaSoftwareRegistry::componentVersionKey()]       = "no data";
+    logMap[CaSoftwareRegistry::componentTimeKey()]          = "no data";
+    logMap[CaSoftwareRegistry::componentOperationTypeKey()] = "no data";
+    logList.append(logMap);
+    return logList;
+}
+
+/*!
+ Creating uninstall notifier
+ \return CaUninstallNotifier instance
+ */
+CaUninstallNotifier *CaSoftwareRegistryPrivate::createUninstallNotifier() const
+{
+    return CaUninstallNotifier::notifier();
+}