services/terminalmodeservice/src/upnptmappserverservice.cpp
changeset 34 5da7464ce100
parent 27 226a2340cdd3
equal deleted inserted replaced
32:e4f3ce6894d4 34:5da7464ce100
   185    {
   185    {
   186    OstTraceFunctionEntry0( CUPNPTMAPPSERVERSERVICE_GETAPPLISTACTIONL_ENTRY );
   186    OstTraceFunctionEntry0( CUPNPTMAPPSERVERSERVICE_GETAPPLISTACTIONL_ENTRY );
   187    // Fetch the value for app listing filter argument
   187    // Fetch the value for app listing filter argument
   188    const TDesC8& filter = aAction->ArgumentValue(KAppFilter);
   188    const TDesC8& filter = aAction->ArgumentValue(KAppFilter);
   189    // Validate the AppListing filter string
   189    // Validate the AppListing filter string
   190    // AppListingFilter input argument can contain wither wildcard(*) or
   190    // AppListingFilter input argument can contain one of these: <1> an empty string ("")  
   191    // a well formatted string
   191    // <2> wildcard(*)  <3> a well formatted filter string 
   192    if ( ( filter.Compare(KWildCard ) != KErrNone ) && ( filter.Find(Keq) == KErrNotFound ))
   192    if ( ( filter.Compare(KNullDesC8()) != KErrNone ) && ( filter.Compare(KWildCard ) != KErrNone ) 
       
   193         && ( filter.Find(Keq) == KErrNotFound ) )
   193        {
   194        {
   194        // The filter string is having neither wildcard(*) nor a proper string( =" is missing )
   195        // AppListingFilter argument is not having empty string ( "" ) , or wildcard(*) , 
       
   196        // or a valid filter string( =" is missing )
   195        OstTrace0( TRACE_ERROR, DUP2_CUPNPTMAPPSERVERSERVICE_GETAPPLISTACTIONL, "CUpnpTmAppServerService::GetAppListActionL" );   
   197        OstTrace0( TRACE_ERROR, DUP2_CUPNPTMAPPSERVERSERVICE_GETAPPLISTACTIONL, "CUpnpTmAppServerService::GetAppListActionL" );   
   196        return EInvalidArgs;  // invalid AppListingFilter argument
   198        return EInvalidArgs;  // invalid AppListingFilter argument
   197        }
   199        }
   198    
   200    
   199    // Fetch the value for profile ID argument
   201    // Fetch the value for profile ID argument