services/terminalmodeservice/src/upnptmserverimpl.cpp
changeset 31 b51a6f4f15ba
parent 24 e9457ebcc4df
equal deleted inserted replaced
28:0060d1e93dc3 31:b51a6f4f15ba
   191             {
   191             {
   192             iProfileId = aProfileId; // Stored for generating app icon path in the soap response
   192             iProfileId = aProfileId; // Stored for generating app icon path in the soap response
   193             AppendDataL(KAppListStart);
   193             AppendDataL(KAppListStart);
   194             for ( TInt i(0) ; i < iAppStore->AppIdArray().Count(); i++)
   194             for ( TInt i(0) ; i < iAppStore->AppIdArray().Count(); i++)
   195                  {
   195                  {
   196                  // There can be 2 conditions assoicated with this
   196                  // There can be 2 conditions associated with this
   197                  // 1.  AppListingFilter is "*"
   197                  // 1.  AppListingFilter value is "*" or empty 
   198                  // 2.  AppListingFilter has some filter string set
   198                  // 2.  AppListingFilter has some filter string set
   199                  const RArray<TUint>& profileIdList = iAppStore->FetchRemotableApp(i).AllowedProfileIdList();
   199                  const RArray<TUint>& profileIdList = iAppStore->FetchRemotableApp(i).AllowedProfileIdList();
   200                  if ( ( profileIdList.Find(aProfileId) != KErrNotFound ) ||
   200                  if ( ( profileIdList.Find(aProfileId) != KErrNotFound ) ||
   201                                                     ( profileIdList.Count() == KErrNone ))
   201                                                     ( profileIdList.Count() == KErrNone ))
   202                      {
   202                      {
   214                          }
   214                          }
   215                      }
   215                      }
   216                  }
   216                  }
   217             if ( ( filterStringFound == KErrNotFound ) || ( (iFilteredAppList->SignatureElement()).Length() != KErrNone ))
   217             if ( ( filterStringFound == KErrNotFound ) || ( (iFilteredAppList->SignatureElement()).Length() != KErrNone ))
   218                 {
   218                 {
   219                 // Append the xml signature value to the response buffer if
   219                 // Append the xml signature value to the response buffer only if
   220                 // 1. Filter string contains the signature element
   220                 // 1. Filter string contains the signature element or
   221                 // 2. Filter value is '*'
   221                 // 2. Filter value is '*' or
       
   222                 // 3. Filter value is empty
   222                 AppendDataL(XmlSignature());
   223                 AppendDataL(XmlSignature());
   223                 }
   224                 }
   224             AppendDataL(KAppListEnd);        
   225             AppendDataL(KAppListEnd);        
   225             }
   226             }
   226         }
   227         }
  1041 // Utility method to convert integer to descriptor
  1042 // Utility method to convert integer to descriptor
  1042 // @param  aIntVal  Integer value
  1043 // @param  aIntVal  Integer value
  1043 // @return  Returns corresponding descriptor value
  1044 // @return  Returns corresponding descriptor value
  1044 // ---------------------------------------------------------------------------------
  1045 // ---------------------------------------------------------------------------------
  1045 //
  1046 //
  1046 const TDesC8& CUpnpTmServerImpl::ConvertIntToDescriptor( TInt aIntVal )
  1047 const TDesC8& CUpnpTmServerImpl::ConvertIntToDescriptor( TUint aIntVal )
  1047     {
  1048     {
  1048     OstTraceFunctionEntry0( CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR_ENTRY );
  1049     OstTraceFunctionEntry0( CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR_ENTRY );
  1049     OstTrace1( TRACE_NORMAL, CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR, "CUpnpTmServerImpl::ConvertIntToDescriptor;aIntVal=%d", aIntVal );
  1050     OstTrace1( TRACE_NORMAL, CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR, "CUpnpTmServerImpl::ConvertIntToDescriptor;aIntVal=%u", aIntVal );
  1050     iBufVal.Num( aIntVal );
  1051     iBufVal.Num( aIntVal );
  1051     OstTraceFunctionExit0( CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR_EXIT );
  1052     OstTraceFunctionExit0( CUPNPTMSERVERIMPL_CONVERTINTTODESCRIPTOR_EXIT );
  1052     return iBufVal;
  1053     return iBufVal;
  1053     }
  1054     }
  1054 
  1055