usbengines/usbwatcher/src/cusbpersonalitynotifier.cpp
branchRCL_3
changeset 55 c00b160ac7eb
parent 0 1e05558e2206
equal deleted inserted replaced
37:3e3bd14de94e 55:c00b160ac7eb
   196                 aResponse, aStatus, ETrue ) ) == NULL )
   196                 aResponse, aStatus, ETrue ) ) == NULL )
   197             {
   197             {
   198             return KErrGeneral;
   198             return KErrGeneral;
   199             }
   199             }
   200                 
   200                 
   201         iNotifierClient.Append(ptr);
   201         if( (ret = iNotifierClient.Append(ptr)) != KErrNone)
       
   202             {
       
   203             LOG( "append error");
       
   204             }
       
   205         
   202         }
   206         }
   203     
   207     
   204     return ret;
   208     return ret;
   205     }
   209     }
   206 
   210 
   229                 aResponse, NULL, EFalse ) ) == NULL )
   233                 aResponse, NULL, EFalse ) ) == NULL )
   230             {
   234             {
   231             return KErrGeneral;
   235             return KErrGeneral;
   232             }
   236             }
   233                 
   237                 
   234         iNotifierClient.Append( ptr );
   238         if( ( ret = iNotifierClient.Append( ptr ) ) != KErrNone)
       
   239             {
       
   240             LOG( "append error");
       
   241             }
   235         }
   242         }
   236     
   243     
   237     return ret;
   244     return ret;
   238     }
   245     }
   239 
   246 
   336         }
   343         }
   337 
   344 
   338         //Remove all but the 1st
   345         //Remove all but the 1st
   339         TNotifierClient* ptr = iNotifierClient[0];
   346         TNotifierClient* ptr = iNotifierClient[0];
   340         iNotifierClient.Reset();
   347         iNotifierClient.Reset();
   341         iNotifierClient.Append( ptr );
   348         TInt ret = iNotifierClient.Append( ptr );
       
   349         if (ret != KErrNone)
       
   350             {
       
   351             LOG("append error");
       
   352             }
   342         }
   353         }
   343     }
   354     }
   344 
   355 
   345 // ----------------------------------------------------------------------------
   356 // ----------------------------------------------------------------------------
   346 // Return ETrue, if the notifier with the UID is currently showing.
   357 // Return ETrue, if the notifier with the UID is currently showing.