/*
* Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Header file of EAP MsChapv2 UI settings array
*
*/

/*
* %version: 12 %
*/

#ifndef _EAPMSCHAPV2UISETTINGARRAY_H_
#define _EAPMSCHAPV2UISETTINGARRAY_H_

// INCLUDES
#include <aknsettingitemlist.h>
#include "EapMschapv2Ui.hrh"


// CLASS DECLARATION

/**
*/
class CEapMsChapV2SettingItemArray : public CBase
    {
    public:
        static CEapMsChapV2SettingItemArray* NewL();

        virtual ~CEapMsChapV2SettingItemArray();

        CAknSettingItem* Item( TEapMschapv2SettingItemId aItem );

        CAknSettingItemArray* Array();

        void StoreSettingsL();

        void AddTextItemL( TDes& aBuffer, TInt aId, TInt aTitleResource,
                           TInt aSettingPageResource, TInt aAssociatedResource,
                           TInt aOrdinal);

        void AddPasswordItemL( TDes& aPassword, TInt aId, TInt aTitleResource,
                               TInt aSettingPageResource, 
                               TInt aAssociatedResource, TInt aOrdinal);

        void AddBinarySettingItemL( TInt aSettingPageResourceId,
                                    TInt aTitleResourceId,
                                    TInt aAssociatedResourceId,
                                    TInt aOrdinal,
                                    TBool& aModifiedValue);

    protected:
        CEapMsChapV2SettingItemArray();
        void ConstructL();

    private:
        CAknSettingItemArray* iArray;
    };

#endif  // _EAPMSCHAPV2UISETTINGARRAY_H_


//  End of File
