contacts_plat/presence_cache_api/inc/presencecachereadhandler2.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Interface for presence cache reader handler.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPRESENCECACHEREADHANDLER2_H
       
    19 #define MPRESENCECACHEREADHANDLER2_H
       
    20 
       
    21 #include <badesca.h>
       
    22 
       
    23 /**
       
    24  * Interface for presence cache reader API handler for asynchronous functions used in API.
       
    25  * This interface is implemented by the clients as per their needs. 
       
    26  */
       
    27  
       
    28 // class MPresenceBuddyInfoList;
       
    29 class MPresenceBuddyInfo2;
       
    30 
       
    31 class MPresenceCacheReadHandler2
       
    32 {
       
    33 public:
       
    34     /**
       
    35      * Handler for AllBuddiesPresenceInService method of MPresenceCacheReader.
       
    36      *
       
    37      * @param aErrorCode 
       
    38      * @param aPresenceBuddyInfoList presence infos for all buddies requested. 
       
    39      *         Ownership of elements to callee. Can be empty if not found.
       
    40      */   
       
    41     virtual void HandlePresenceReadL(TInt aErrorCode,
       
    42          RPointerArray<MPresenceBuddyInfo2>& aPresenceBuddyInfoList) = 0;
       
    43                         
       
    44     /**
       
    45      * Handler for Buddy presence change notifications.
       
    46      *
       
    47      * @param aErrorCode 
       
    48      * @param aPresenceBuddyInfo presence info for buddy. 
       
    49      *         Ownership to callee. Can be NULL if aErrorCode exist.
       
    50      */    
       
    51     virtual void HandlePresenceNotificationL(TInt aErrorCode,
       
    52         MPresenceBuddyInfo2* aPresenceBuddyInfo) = 0;
       
    53 };
       
    54 
       
    55 #endif // MPRESENCECACHEREADHANDLER2_H
       
    56 
       
    57 
       
    58