camerauis/cameraapp/generic/common/inc/mcamlistboxmodel.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 0 1ddebce53859
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
       
     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:  Listbox interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_CAM_LISTBOXMODEL_H
       
    20 #define M_CAM_LISTBOXMODEL_H
       
    21 
       
    22 
       
    23 
       
    24 #include <eiklbm.h>
       
    25 
       
    26 class MCamListboxModel: public MListBoxModel
       
    27   {
       
    28   public : // from MListBoxModel
       
    29     
       
    30     /**
       
    31     * virtual empty destructor
       
    32     */
       
    33     virtual ~MCamListboxModel() {};
       
    34 
       
    35     /**
       
    36     * Returns the number of items.
       
    37     * @since 2.8
       
    38     * Returns number of items in item array
       
    39     * @return Number of items
       
    40     */
       
    41     virtual TInt NumberOfItems() const = 0;
       
    42 		
       
    43     /**
       
    44     * Returns pointer to the MDesCArray
       
    45     * @since 2.8
       
    46     * @return Handle to MDesCArray
       
    47     */        
       
    48     virtual const MDesCArray* MatchableTextArray() const = 0;
       
    49   
       
    50   public :
       
    51 
       
    52     /**
       
    53     * Returns pointer to the item text
       
    54     * @param aItemIndex index of the item 
       
    55     * @return pointer to the item text
       
    56     */   
       
    57     virtual TPtrC ItemText( TInt aItemIndex ) const = 0;
       
    58     
       
    59     /**
       
    60     * Returns the value id of the specified item
       
    61     * @param aItemIndex index of the item 
       
    62     * @return the item's value id
       
    63     */   
       
    64     virtual TInt ItemValue( TInt aItemIndex ) const = 0;
       
    65     
       
    66     /**
       
    67     * Returns the bitmap for the specified item
       
    68     * @param aItemIndex index of the item 
       
    69     * @return pointer to the icon bitmap
       
    70     */   
       
    71     virtual CFbsBitmap* Bitmap( TInt aItemIndex ) const = 0;
       
    72     
       
    73     /**
       
    74     * Returns the bitmap mask for the specified item
       
    75     * @param aItemIndex index of the item 
       
    76     * @return pointer to the icon mask
       
    77     */  
       
    78     virtual CFbsBitmap* BitmapMask( TInt aItemIndex ) const = 0;
       
    79     
       
    80     /**
       
    81     * Returns the index of the item with the specified value id
       
    82     * @param aValueId the value to find
       
    83     * @return index of the matching item
       
    84     */  
       
    85     virtual TInt ValueIndex( TInt aValueId ) const = 0;
       
    86     
       
    87     
       
    88     /**
       
    89     * Returns whether the model represents a shooting mode selection listbox
       
    90     * @since 2.8
       
    91     * @return TBool ETrue if the model is representing a shooting mode listbox instead of a general settings listbox
       
    92     */
       
    93     virtual TBool ShootingModeListBox() const = 0;
       
    94     
       
    95     virtual TAknLayoutRect IconLayoutData() const = 0;
       
    96     virtual TAknLayoutRect RadioButtonLayoutData() const = 0;
       
    97     virtual TAknLayoutText TextLayoutData() const = 0;
       
    98     virtual TAknLayoutRect ListItemLayoutData() const = 0;
       
    99 
       
   100   };
       
   101 
       
   102 #endif // M_CAM_LISTBOXMODEL_H