phoneengine/PhoneCntFinder/ContactService/inc/MPhCntContactFetchObserver.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Observer interface for receiving contact.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPHCNTCONTACTFETCHOBSERVER_H
       
    20 #define MPHCNTCONTACTFETCHOBSERVER_H
       
    21 
       
    22 class CPhCntContact;
       
    23 
       
    24 /**
       
    25  *  Observer interface for receiving contact.
       
    26  *
       
    27  *  @lib PhoneCntFinder.lib
       
    28  *  @since S60 v3,1
       
    29  */
       
    30 NONSHARABLE_CLASS( MPhCntContactFetchObserver ) 
       
    31 	{
       
    32 	
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Indication that contact has been received.
       
    37      * 
       
    38      * aContact is NULL if getting the contact failed.
       
    39      *
       
    40      * @since S60 v3.1
       
    41      * @param aContact Received contact. It is null, if there was an error
       
    42      * during reception of the contact. Ownership is given to observer.
       
    43      * @param aError Error code. 
       
    44      */
       
    45      virtual void ContactReceived( CPhCntContact* aContact, TInt aError ) = 0;
       
    46 
       
    47     };
       
    48 
       
    49 
       
    50 #endif // MPHCNTCONTACTFECTHOBSERVER_H