emailservices/emailclientapi/src/emailmessagesearch.cpp
changeset 72 64e38f08e49c
parent 54 997a02608b3a
child 74 6c59112cfd31
equal deleted inserted replaced
65:478bc57ad291 72:64e38f08e49c
   282 //  *         implementation and may vary.
   282 //  *         implementation and may vary.
   283 //  *     KErrNone : initial state, or search has finished
   283 //  *     KErrNone : initial state, or search has finished
   284 // -----------------------------------------------------------------------------
   284 // -----------------------------------------------------------------------------
   285 TInt CEmailMessageSearchAsync::Status() const
   285 TInt CEmailMessageSearchAsync::Status() const
   286     {
   286     {
       
   287     TInt ret(KErrNone);
   287     if (KErrNone != iGate.Wait(1))
   288     if (KErrNone != iGate.Wait(1))
   288         {
   289         {
   289         // Search is going on
   290         // Search is going on
   290         return KRequestPending;
   291         ret = KRequestPending;
   291         }
   292         }
   292     else
   293     else
   293         {
   294         {
   294         // Release gate
   295         // Release gate
   295         iGate.Signal();       
   296         iGate.Signal();       
   296         }
   297         }
   297 
   298 
   298     return KErrNone; 
   299     return ret; 
   299     }
   300     }
   300 
   301 
   301 // -----------------------------------------------------------------------------
   302 // -----------------------------------------------------------------------------
   302 // Resets all search attribures. Cancels search if ongoing. 
   303 // Resets all search attribures. Cancels search if ongoing. 
   303 // -----------------------------------------------------------------------------
   304 // -----------------------------------------------------------------------------