/*
* 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: Declaration of class CWEPKeyDataTextSettingPage.
*
*/


#ifndef WEPKEYDATA_TEXT_SETTING_PAGE_H
#define WEPKEYDATA_TEXT_SETTING_PAGE_H


// INCLUDE FILES
#include <akntextsettingpage.h>
#include <WEPSecuritySettingsUI.h>
#include "WepSecuritySettingsDefs.h"


// CLASS DECLARATION

/*
* Setting page for KeyData text. Overrides standard CAknTextSettingPage
* to set some parameters at runtime, according to the KeyFormat
*/
NONSHARABLE_CLASS( CWEPKeyDataTextSettingPage ) : public CAknTextSettingPage
    {
    public: // Constructors

        /**
        * Constructor.
        * @param aText  Reference to text for editing
        * @param aMaxLength Number of characters to be entered
        * @param aWEPKeyFormat  Format of data (EAscii or EHexadecimal)
        */
	    CWEPKeyDataTextSettingPage( TDes& aText, TInt aMaxLength, 
                           CWEPSecuritySettings::TWEPKeyFormat aWEPKeyFormat );
	    
        /**
        * Constructs the setting page. Called by ExecuteLD
        */
        virtual void ConstructL();

    private:

        // Number of characters to be entered
        TInt iLengthOfKeyData;   

        // Format of data (EAscii or EHexadecimal)
        CWEPSecuritySettings::TWEPKeyFormat iWEPKeyFormat;
    };


#endif

// End of file
