meetingrequest/mrcasplugin/inc/mesmrcasplugincontactretrieverobserver.h
changeset 0 8466d47a6819
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:  ESMR CAS plug-in contact retriever observer
       
    15 *
       
    16 */
       
    17 #ifndef MESMRCASPLUGINCONTACTRETRIEVEROBSERVER_H
       
    18 #define MESMRCASPLUGINCONTACTRETRIEVEROBSERVER_H
       
    19 
       
    20 class CCalUser;
       
    21 
       
    22 /**
       
    23  * MESMRCasPluginContactRetrieverObserver defines observer
       
    24  * interface for contact retriever operations.
       
    25  */
       
    26 class MESMRCasPluginContactRetrieverObserver
       
    27     {
       
    28 public: // Destruction
       
    29     virtual ~MESMRCasPluginContactRetrieverObserver() {}
       
    30 
       
    31 public: // Interface
       
    32 
       
    33     /**
       
    34      * Called to notify that MR contact count fetching is complete.
       
    35      * @param aCanExecute ETrue if at least 1 contact with email was found.
       
    36      */
       
    37     virtual void MRCanExecuteComplete( TBool aCanExecute ) = 0;
       
    38     
       
    39     /**
       
    40      * Notify observer about error.
       
    41      * @param aError Error code.
       
    42      */
       
    43     virtual void MRCanExecuteError(
       
    44             TInt aError ) = 0;
       
    45 
       
    46     /**
       
    47      * Called to notify that MR contact fetching is complete.
       
    48      * @param aContactCount Total number of contacts.
       
    49      * @param aContacts Array of fecthed MR attendees.
       
    50      */
       
    51     virtual void MRGetAttendeesComplete(
       
    52             TInt aContactCount,
       
    53             const RPointerArray<CCalUser>& aAttendees ) = 0;
       
    54     
       
    55     /**
       
    56      * Notify observer about error.
       
    57      * @param aError Error code.
       
    58      */
       
    59     virtual void MRGetAttendeesError(
       
    60             TInt aError ) = 0;
       
    61 
       
    62     };
       
    63 
       
    64 
       
    65 #endif // MESMRCASPLUGINCONTACTRETRIEVEROBSERVER_H
       
    66 
       
    67 // EOF