services/terminalmodeservice/src/upnpappfilterinfo.cpp
changeset 26 b6b8e90f9863
parent 24 e9457ebcc4df
--- a/services/terminalmodeservice/src/upnpappfilterinfo.cpp	Fri Jul 23 08:57:49 2010 +0300
+++ b/services/terminalmodeservice/src/upnpappfilterinfo.cpp	Fri Aug 06 18:27:32 2010 +0300
@@ -111,6 +111,9 @@
 // returns invalid argument as an error.
 // @param aKey Key name
 // @param aValue Value of the key
+// @param aDisplayInfoFlag True if info type is displayInfo, false otherwise.
+//         Default is false. It is used to distinguish "trustLevel" element 
+//         of appInfo and displayInfo.
 // @param aErr Terminal Mode error code
 // ---------------------------------------------------------------------------------
 //
@@ -196,7 +199,7 @@
         iAppCategory = aValue.AllocL();
         aErr = ETerminalModeSuccess;  
         }
-    else if ( aKey.Compare(KTrustLevel) == KErrNone )                                         
+    else if (( aKey.Compare(KTrustLevel) == KErrNone ) && ( !aDisplayInfoFlag ))                                        
         {
         delete iAppTrustLevel;
         iAppTrustLevel = NULL;
@@ -217,7 +220,7 @@
         iContentRules = aValue.AllocL();
         aErr = ETerminalModeSuccess;   
         }
-    else if ( ( aDisplayInfoFlag ) && ( aKey.Compare(KTrustLevel) == KErrNone ) )
+    else if (( aKey.Compare(KTrustLevel) == KErrNone ) && ( aDisplayInfoFlag ))
         {
         delete iContTrustLevel;
         iContTrustLevel = NULL;