meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/mesmrclslistsobserver.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:  CLS list change observer abstract class definition
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MESMRCLSLISTSOBSERVER_H
       
    20 #define MESMRCLSLISTSOBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "cesmrclsitem.h"       // CESMRClsItem
       
    25 
       
    26 /**
       
    27  * Freestyle email application's cls list change observer interface
       
    28  */
       
    29 class MESMRClsListsObserver
       
    30     {
       
    31 public:
       
    32     /**
       
    33      * Notifies the observer to update shown contact list with new matching items array
       
    34      * Observer should save the pointer for further usage. Everytime this UpdateL method
       
    35      * is called new pointer should be saved. Ownership is trasfered to the observer.
       
    36      * Observer should delete all the items and reset the array when new is received.
       
    37      *
       
    38      * First items in the array are the one found in contacts which have email address.
       
    39      * After first items are matches from MRU list. Last items are contact matches which don't
       
    40      * have email address.
       
    41      *
       
    42      * @param aMatchingItems list of matching contact and MRU list items
       
    43      */
       
    44     virtual void ArrayUpdatedL( RPointerArray<CESMRClsItem>& aMatchingItems ) = 0;
       
    45     
       
    46     /**
       
    47      * Notify if error occured during the fill operation for the matching items array
       
    48      *
       
    49      * @param aErrorCode type of failure of the array operation
       
    50      */
       
    51     virtual void OperationErrorL( TInt aErrorCode )= 0;
       
    52     };
       
    53 
       
    54 #endif  // CESMRCLSLISTSOBSERVER_H
       
    55 
       
    56 // End of File