emailuis/emailui/inc/FreestyleEmailUiContactHandlerObserver.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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:  Contact handler observer interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef FREESTYLEEMAILUICONTACTHANDLEROBSERVER_H_
       
    20 #define FREESTYLEEMAILUICONTACTHANDLEROBSERVER_H_
       
    21 
       
    22 #include <e32cmn.h>
       
    23 #include "FreestyleEmailUiContactHandler.h"
       
    24 
       
    25 class CFSEmailUiClsItem;
       
    26 
       
    27 /**
       
    28  * Contact handler observer interface.
       
    29  */
       
    30 class MFSEmailUiContactHandlerObserver
       
    31 {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Operation completed.
       
    36      * 
       
    37      * @param aCmd Completed contact handler operation.
       
    38      * @param aContacts array containing the search results
       
    39      */
       
    40     virtual void OperationCompleteL( TContactHandlerCmd aCmd,
       
    41         const RPointerArray<CFSEmailUiClsItem>& aContacts ) = 0;
       
    42 
       
    43     /**
       
    44      * Error in contact handler operation.
       
    45      *
       
    46      * @param aCmd Command.
       
    47      * @param aError Error.
       
    48      */
       
    49     virtual void OperationErrorL( TContactHandlerCmd aCmd,
       
    50         TInt aError ) = 0;
       
    51 
       
    52 };
       
    53 
       
    54 #endif /*FREESTYLEEMAILUICONTACTHANDLEROBSERVER_H_*/