simpledatamodeladapter/src/presencepluginwatcher.cpp
branchRCL_3
changeset 8 aca99fb8a3dd
parent 0 c8caa15ef882
child 14 de84881f4ac3
equal deleted inserted replaced
7:895b8e06c769 8:aca99fb8a3dd
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   214             
   214             
   215     CPresencePluginEntityWatcher* watcher =
   215     CPresencePluginEntityWatcher* watcher =
   216         MatchWatcherL( pres8->Des(), EFalse );
   216         MatchWatcherL( pres8->Des(), EFalse );
   217     if ( !watcher )
   217     if ( !watcher )
   218         {
   218         {
   219         DP_SDA("DoUnsubscribePresentityPresenceL error");
   219         DP_SDA("DoUnsubscribePresentityPresenceL watcher not found");
   220         User::Leave( KErrNotFound ); // Notice: error code
   220         aStatus = KRequestPending;
       
   221         TRequestStatus* temp = &aStatus;
       
   222         User::RequestComplete( temp, KErrNotFound );
   221         }
   223         }
   222     else
   224     else
   223         {
   225         {
   224       	DP_SDA("DoUnsubscribePresentityPresenceL stop subscripe");
   226       	DP_SDA("DoUnsubscribePresentityPresenceL stop subscribe");
   225         watcher->StopSubscribeL( aStatus );      
   227         watcher->StopSubscribeL( aStatus );
   226         }    
   228         }
   227     CleanupStack::PopAndDestroy( pres8 );  // >> pres8
   229     CleanupStack::PopAndDestroy( pres8 );  // >> pres8
   228     
   230     
   229     DP_SDA("CPresencePluginWatcher::DoPerformUnsubscribePresentityPresenceL -end");
   231     DP_SDA("CPresencePluginWatcher::DoPerformUnsubscribePresentityPresenceL end");
   230     }
   232     }
   231 
   233 
   232 // ---------------------------------------------------------------------------
   234 // ---------------------------------------------------------------------------
   233 // CPresencePluginWatcher::DoSubscribePresentityGroupMembersPresenceL()
   235 // CPresencePluginWatcher::DoSubscribePresentityGroupMembersPresenceL()
   234 // ---------------------------------------------------------------------------
   236 // ---------------------------------------------------------------------------