messagingappbase/mcesettings/inc/MceSettingsArrays.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  
       
    15 *     Helper class for dialogs. Overrides MdcaPoint to return correct string for
       
    16 *     listboxes.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MCESETTINGSARRAYS_H
       
    23 #define MCESETTINGSARRAYS_H
       
    24 
       
    25 //  INCLUDES
       
    26 
       
    27 #include <MsgArrays.h> // CUidNameArray
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 
       
    35 /**
       
    36 *  Helper class for dialogs. Overrides MdcaPoint to return correct string for
       
    37 *  listboxes.
       
    38 */
       
    39 class CMceUidNameArray :
       
    40     public CUidNameArray
       
    41     {
       
    42     public:
       
    43 
       
    44         enum TMceUidNameArrayType
       
    45             {
       
    46             EMtmList,
       
    47             EServicesList
       
    48             };
       
    49 
       
    50     public:
       
    51 
       
    52         /**
       
    53         * Two-phased constructor.
       
    54         */
       
    55         IMPORT_C static CMceUidNameArray* NewL( TMceUidNameArrayType aType = EMtmList );
       
    56         
       
    57         /**
       
    58          * Destructor
       
    59          */
       
    60         IMPORT_C ~CMceUidNameArray();
       
    61 
       
    62     private:
       
    63 
       
    64         /**
       
    65          * Default constructor
       
    66          */
       
    67         CMceUidNameArray( TMceUidNameArrayType aType );
       
    68 
       
    69         /**
       
    70          * Symbian OS constructor
       
    71          */
       
    72         void ConstructL();
       
    73 
       
    74         /**
       
    75          * From MDesCArray
       
    76          * @param aIndex id of the folder to be opened
       
    77          * Returns string for listbox for displaying.
       
    78          */
       
    79         virtual TPtrC MdcaPoint( TInt aIndex ) const;
       
    80 
       
    81     private:
       
    82         TMceUidNameArrayType iListType;
       
    83         HBufC*  iText;
       
    84 
       
    85     };
       
    86 
       
    87 
       
    88 #endif // MCESETTINGSARRAYS_H
       
    89 
       
    90 // End of file