meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/mesmrcontacthandlerobserver.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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 of contact search operations
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef MESMRCONTACTHANDLEROBSERVER_H
       
    19 #define MESMRCONTACTHANDLEROBSERVER_H
       
    20 
       
    21 #include "cesmrcontacthandler.h"
       
    22 
       
    23 class CESMRClsItem;
       
    24 
       
    25 /**
       
    26  * Observer interface for classes who need contact search functionality
       
    27  */
       
    28 class MESMRContactHandlerObserver
       
    29 {
       
    30 public:
       
    31     /**
       
    32      * Operation completed.
       
    33      * @param aCmd Completed contact handler operation.
       
    34      * @param aContacts array containing the search results,
       
    35      * Ownership not transfered
       
    36      */
       
    37     virtual void OperationCompleteL( TContactHandlerCmd aCmd,
       
    38         const RPointerArray<CESMRClsItem>* aContacts ) = 0;
       
    39 
       
    40     /**
       
    41      * Error in contact handler operation.
       
    42      * @param aCmd Command.
       
    43      * @param aError Error.
       
    44      */
       
    45     virtual void OperationErrorL( TContactHandlerCmd aCmd,
       
    46         TInt aError ) = 0;
       
    47 };
       
    48 
       
    49 #endif