contentstorage/casoftwareregistry/src/casoftwareregistry.cpp
changeset 102 8b8b34fa9751
parent 98 d2f833ab7940
child 107 b34d53f6acdf
--- a/contentstorage/casoftwareregistry/src/casoftwareregistry.cpp	Tue Jun 29 10:20:30 2010 +0300
+++ b/contentstorage/casoftwareregistry/src/casoftwareregistry.cpp	Fri Jul 09 14:19:08 2010 +0300
@@ -42,12 +42,12 @@
  Subsequent calls to CaSoftwareRegistry::create() may return pointers to different
  instances. It is a case when between the calls instance counter of the created
  object dropped to 0 and it was deleted.
- 
+
  */
 
 /*! \typedef typedef QHash<QString, QString> DetailMap;
  * Defines map type for component details.
- * 
+ *
  */
 
 /*!
@@ -57,7 +57,7 @@
 
 
 // Initialization of a static member variable.
-QWeakPointer<CaSoftwareRegistry> CaSoftwareRegistry::m_instance = 
+QWeakPointer<CaSoftwareRegistry> CaSoftwareRegistry::m_instance =
     QWeakPointer<CaSoftwareRegistry>();
 
 
@@ -149,7 +149,7 @@
  \endcode
  \param componentId Component id of the entry details are requested for.
  \return Map of the component details if component id was greater than 0 or
- empty map otherwise. 
+ empty map otherwise.
 
  */
 CaSoftwareRegistry::DetailMap CaSoftwareRegistry::entryDetails(
@@ -159,6 +159,16 @@
 }
 
 /*!
+ The method provides installation details from USIF.
+ \return QList of DetailMap.
+ */
+QList<CaSoftwareRegistry::DetailMap>
+        CaSoftwareRegistry::retrieveLogEntries() const
+{
+    return m_d->retrieveLogEntries();
+}
+
+/*!
  * \return Component name key in CaSoftwareRegistry::DetailMap.
  */
 QString CaSoftwareRegistry::componentNameKey()
@@ -195,6 +205,15 @@
 }
 
 /*!
+ * \return Component protection domainkey in CaSoftwareRegistry::DetailMap.
+ */
+QString CaSoftwareRegistry::componentProtectionDomainKey()
+{
+    static const QString key("protectiondomain");
+    return key;
+}
+
+/*!
  * \return Component size info key in CaSoftwareRegistry::DetailMap.
  */
 QString CaSoftwareRegistry::componentSizeKey()
@@ -212,3 +231,72 @@
     return key;
 }
 
+/*!
+ * \return Component description key in CaSoftwareRegistry::DetailMap.
+ */
+QString CaSoftwareRegistry::componentDescriptionKey()
+{
+    static const QString key("description");
+    return key;
+}
+
+/*!
+ * \return Component instalation/uninstallation
+ * time key in CaSoftwareRegistry::DetailMap.
+ */
+QString CaSoftwareRegistry::componentTimeKey()
+{
+    static const QString key("time");
+    return key;
+}
+
+/*!
+ * \return Component instalation/uninstallation/upgrade/hidden
+ * operation type key in CaSoftwareRegistry::DetailMap.
+ */
+QString CaSoftwareRegistry::componentOperationTypeKey()
+{
+    static const QString key("operationType");
+    return key;
+}
+
+/*!
+ * \return Component instalation
+ * operation value in CaSoftwareRegistry::DetailMap.
+ */
+QString CaSoftwareRegistry::componentInstallValue()
+{
+    static const QString value("install");
+    return value;
+}
+
+/*!
+ * \return Component uninstallation
+ * operation value in CaSoftwareRegistry::DetailMap.
+ */
+QString CaSoftwareRegistry::componentUninstallValue()
+{
+    static const QString value("uninstall");
+    return value;
+}
+
+/*!
+ * \return Component upgrade
+ * operation value in CaSoftwareRegistry::DetailMap.
+ */
+QString CaSoftwareRegistry::componentUpgradeValue()
+{
+    static const QString value("upgrade");
+    return value;
+}
+
+/*!
+ * \return Component hidden
+ * operation value in CaSoftwareRegistry::DetailMap.
+ */
+QString CaSoftwareRegistry::componentHiddenValue()
+{
+    static const QString value("hidden");
+    return value;
+}
+