accesspointcontrol/apcontrollistplugin/inc/apcontrollistboxmodel.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 0 5a93021fdf25
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
       
     1 /*
       
     2 * Copyright (c) 2006 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 of class CApControlListboxModel.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef APCONTROL_LISTBOX_MODEL_H
       
    20 #define APCONTROL_LISTBOX_MODEL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknlists.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28 * Data model for the access point listbox. It is an array of CApListItem
       
    29 * pointers; items are owned.
       
    30 */
       
    31 NONSHARABLE_CLASS( CApControlListboxModel ):
       
    32         public CTextListBoxModel,
       
    33         public MDesCArray
       
    34     {
       
    35     public:     // Construct / destruct
       
    36 
       
    37         /**
       
    38         * Constructor.
       
    39         * @param aGraphicType Graphic type
       
    40         */
       
    41         CApControlListboxModel( );
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CApControlListboxModel();
       
    47 
       
    48     public:     // from MDesCArray
       
    49 
       
    50         /**
       
    51         * Get number of items in the model.
       
    52         * @return Number of items.
       
    53         */
       
    54         TInt MdcaCount() const;
       
    55 
       
    56         /**
       
    57         * Text to be displayed for this item.
       
    58         * @param aIndex Index of item.
       
    59         * @return TPtrC for this item text (text owned by the model).
       
    60         */
       
    61         TPtrC MdcaPoint( TInt aIndex ) const;
       
    62 
       
    63     };
       
    64 
       
    65 
       
    66 #endif
       
    67 
       
    68 // End of file