services/terminalmodeservice/src/upnptmserverimpl.cpp
changeset 34 5da7464ce100
parent 27 226a2340cdd3
--- a/services/terminalmodeservice/src/upnptmserverimpl.cpp	Thu Sep 02 21:24:54 2010 +0300
+++ b/services/terminalmodeservice/src/upnptmserverimpl.cpp	Fri Sep 17 08:35:16 2010 +0300
@@ -193,8 +193,8 @@
             AppendDataL(KAppListStart);
             for ( TInt i(0) ; i < iAppStore->AppIdArray().Count(); i++)
                  {
-                 // There can be 2 conditions assoicated with this
-                 // 1.  AppListingFilter is "*"
+                 // There can be 2 conditions associated with this
+                 // 1.  AppListingFilter value is "*" or empty 
                  // 2.  AppListingFilter has some filter string set
                  const RArray<TUint>& profileIdList = iAppStore->FetchRemotableApp(i).AllowedProfileIdList();
                  if ( ( profileIdList.Find(aProfileId) != KErrNotFound ) ||
@@ -216,9 +216,10 @@
                  }
             if ( ( filterStringFound == KErrNotFound ) || ( (iFilteredAppList->SignatureElement()).Length() != KErrNone ))
                 {
-                // Append the xml signature value to the response buffer if
-                // 1. Filter string contains the signature element
-                // 2. Filter value is '*'
+                // Append the xml signature value to the response buffer only if
+                // 1. Filter string contains the signature element or
+                // 2. Filter value is '*' or
+                // 3. Filter value is empty
                 AppendDataL(XmlSignature());
                 }
             AppendDataL(KAppListEnd);        
@@ -1043,10 +1044,10 @@
 // @return  Returns corresponding descriptor value
 // ---------------------------------------------------------------------------------
 //
-const TDesC8& CUpnpTmServerImpl::ConvertIntToDescriptor( TInt aIntVal )
+const TDesC8& CUpnpTmServerImpl::ConvertIntToDescriptor( TUint aIntVal )
     {
     OstTraceFunctionEntry0( CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR_ENTRY );
-    OstTrace1( TRACE_NORMAL, CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR, "CUpnpTmServerImpl::ConvertIntToDescriptor;aIntVal=%d", aIntVal );
+    OstTrace1( TRACE_NORMAL, CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR, "CUpnpTmServerImpl::ConvertIntToDescriptor;aIntVal=%u", aIntVal );
     iBufVal.Num( aIntVal );
     OstTraceFunctionExit0( CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR_EXIT );
     return iBufVal;