wlansecuritysettings/wepsecuritysettingsui/inc/WepKeyDataTextSettingPage.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:23:57 +0100
branchRCL_3
changeset 19 c74b3d9f6b9e
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201029 Kit: 201035

/*
* 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.
*
*/

/*
* %version: tr1cfwln#10 %
*/

#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