emailuis/uicomponents/inc/fsfastaddressinglistobserver.h
branchRCL_3
changeset 25 3533d4323edc
parent 0 8466d47a6819
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Declaration od MFsFastAddressingListObserver interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_FSFASTADDRESSLISTOBSERVER_H
       
    20 #define M_FSFASTADDRESSLISTOBSERVER_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32cmn.h>
       
    24 
       
    25 /**
       
    26  *  Observer interface for CFsFastAddressingList.
       
    27  *
       
    28  *  The user of the CFsFastAddressingList class must implement this class
       
    29  *  in order to be notified when an end user enters text into the text
       
    30  *  input field of the fast addressing list component or selects a list
       
    31  *  item from the list of matches.
       
    32  */
       
    33 class MFsFastAddressingListObserver
       
    34     {
       
    35 public:
       
    36 
       
    37     /**
       
    38      * This will be called when the user enters some text into the text
       
    39      * input field. This will also called when the text input field is
       
    40      * cleared.
       
    41      *
       
    42      * @param aText the new contents of the text input field.
       
    43      */
       
    44     virtual void TextInputFieldUpdated( const TDesC& aText )=0;
       
    45 
       
    46     /**
       
    47      * This will be called once the user selects an item from the list of 
       
    48      * matches. The list needs to be explicitly closed.
       
    49      * 
       
    50      * @param aListItemIndex the index of the selected list item
       
    51      */
       
    52     virtual void ListItemSelected( const TInt aListItemIndex )=0;
       
    53 
       
    54     };
       
    55 
       
    56 
       
    57 #endif // M_FSFASTADDRESSLISTOBSERVER_H