homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsviewappdetailsstate.cpp
changeset 85 35368b604b28
parent 77 4b195f3bea29
child 92 6727c5d0afc7
--- a/homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsviewappdetailsstate.cpp	Wed Aug 18 09:40:07 2010 +0300
+++ b/homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsviewappdetailsstate.cpp	Thu Sep 02 20:17:27 2010 +0300
@@ -78,16 +78,16 @@
     HsMenuEvent *menuEvent = static_cast<HsMenuEvent *>(event);
     QVariantMap data = menuEvent->data();
 
-    const int entryId = data.value(itemIdKey()).toInt();
+    const int entryId = data.value(Hs::itemIdKey).toInt();
     QSharedPointer<const CaEntry> entry
         = CaService::instance()->getEntry(entryId);
     const int componentId = entry->attribute(
-        componentIdAttributeName()).toInt();
+        Hs::componentIdAttributeName).toInt();
     
     QSharedPointer<CaSoftwareRegistry> scr = CaSoftwareRegistry::create();
     CaSoftwareRegistry::DetailMap detailMap = scr->entryDetails(componentId);
 
-    QString appType = entry->attribute(swTypeKey());
+    QString appType = entry->attribute(Hs::swTypeKey);
 
     
     //TODO: Should we display something In that case?
@@ -102,7 +102,7 @@
     Q_ASSERT_X(loadStatusOk, HS_DETAILS_DIALOG_LAYOUT,
            "Error while loading docml file.");
 
-    if (!appType.compare(javaSwType())) {
+    if (!appType.compare(Hs::javaSwType)) {
         QString section = QString(HS_VIEWAPPDETAILS_JAVA_DIALOG_SECTION_NAME);
         loader.load(HS_DETAILS_DIALOG_LAYOUT,
                                   section, &loadStatusOk);
@@ -129,7 +129,7 @@
         setFieldPresentation(CaSoftwareRegistry::componentTypeKey(),
             detailMap, loader);
 
-        if (!appType.compare(javaSwType())) {
+        if (!appType.compare(Hs::javaSwType)) {
             setFieldPresentation(CaSoftwareRegistry::componentDescriptionKey(),
                 detailMap, loader);
             setFieldPresentation(CaSoftwareRegistry::componentProtectionDomainKey(),