wlansecuritysettings/wlaneapsettingsui/EapPluginConfig/inc/EAPPluginConfigurationModel.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2009 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 the License "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 CEAPPluginConfigurationModel.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __EAPPLUGINCONFIGURATIONMODEL_H__
       
    21 #define __EAPPLUGINCONFIGURATIONMODEL_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <bamdesca.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATION
       
    29 class REAPPluginList;
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 * UI model for WPA Security Settings UI.
       
    36 * This class formats real data so it can be displayed in the listbox.
       
    37 */
       
    38 class CEAPPluginConfigurationModel : public CBase,
       
    39                                      public MDesCArray
       
    40     {
       
    41     public:     // Constructors and destructor
       
    42         /**
       
    43         * Constructor.
       
    44         * @param aPlugins Plugin list.
       
    45         */
       
    46         inline CEAPPluginConfigurationModel( const REAPPluginList& aPlugins );
       
    47 
       
    48 
       
    49     public:     // from MDesCArray
       
    50         /**
       
    51         * Get number of elements in the descriptor array.
       
    52         * @return The number of elements in the descriptor array.
       
    53         */
       
    54         TInt MdcaCount() const;
       
    55 
       
    56         /**
       
    57         * Index into the descriptor array.
       
    58         * @param aIndex Index.
       
    59         * @return Descriptor at position aIndex.
       
    60         */
       
    61         TPtrC16 MdcaPoint( TInt aIndex ) const;
       
    62 
       
    63 
       
    64     public:     // new functions
       
    65         TInt MdcaEnabledCount() const;
       
    66 
       
    67 
       
    68     private:    // types
       
    69         enum
       
    70             {
       
    71             EBufSize = 128  ///< Formatting buffer size.
       
    72             };
       
    73 
       
    74     private:    // data
       
    75         const REAPPluginList& iPlugins;   ///< Plugins.
       
    76         __MUTABLE TBuf<EBufSize> iBuf;    ///< Formatting buffer.
       
    77 
       
    78     };
       
    79 
       
    80 #include "EAPPluginConfigurationModel.inl"
       
    81 
       
    82 #endif  // __EAPPLUGINCONFIGURATIONMODEL_H__
       
    83 
       
    84 //  End of File