phonebookui/Phonebook2/inc/MPbk2ClipListBoxText.h
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 list box data clipping interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2CLIPLISTBOXTEXT_H
       
    20 #define MPBK2CLIPLISTBOXTEXT_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32std.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  * Phonebook 2 list box data clipping interface.
       
    29  */
       
    30 class MPbk2ClipListBoxText
       
    31     {
       
    32     public: // Interface
       
    33 
       
    34         /**
       
    35          * Clips data from the beginning of the string.
       
    36          *
       
    37          * @param aBuffer           Buffer which contains the
       
    38          *                          string to clip. At return
       
    39          *                          contains the result of the clipping.
       
    40          * @param aItemIndex        Index of the item in the model.
       
    41          * @param aSubCellNumber    Subcell or column number
       
    42          *                          of the position.
       
    43          * @return  ETrue if the string was clipped and three dots
       
    44          *          added to the beginning of it.
       
    45          */
       
    46         virtual TBool ClipFromBeginning(
       
    47                 TDes& aBuffer,
       
    48                 TInt aItemIndex,
       
    49                 TInt aSubCellNumber ) = 0;
       
    50     };
       
    51 
       
    52 #endif // MPBK2CLIPLISTBOXTEXT_H
       
    53 
       
    54 // End of File