diff -r bad0cc58d154 -r c74b3d9f6b9e wlansecuritysettings/wlaneapsettingsui/EapTtls/ConfigUi/inc/EapTtlsUiView.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlansecuritysettings/wlaneapsettingsui/EapTtls/ConfigUi/inc/EapTtlsUiView.h Wed Sep 01 12:23:57 2010 +0100 @@ -0,0 +1,177 @@ +/* +* 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 TTLS UI setting dialog +* +*/ + +/* +* %version: 22 % +*/ + +#ifndef _EAPTTLSUIVIEW_H_ +#define _EAPTTLSUIVIEW_H_ + +// INCLUDES +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "EapTtlsUi.hrh" +#include +#include +#include +#include + + +// FORWARD DECLARATIONS +class CAknSettingStyleListBox; +class CSettingsListBoxItemDrawer; +class CEapTtlsSettingItemArray; + + +// CLASS DECLARATION + +/** +* Settings dialog class definition +*/ +class CEapTtlsUiDialog : public CAknDialog, + public MEapTlsPeapUiCertificates, + public MEikListBoxObserver + { + public: + CEapTtlsUiDialog( CEapTlsPeapUiConnection* aConnection, + TIndexType aIndexType, TInt aIndex, + TInt& aButtonId ); + + ~CEapTtlsUiDialog(); + + /** + * Create and launch dialog. + * @param aResourceId The resource ID of the dialog to load. + * @return The ID of the button that closed the dialog + */ + TInt ConstructAndRunLD( TInt aResourceId ); + + /** + * Chain into key event handler. + * @param aKeyEvent The event. + * @param aType The type of key event. + * @return Was the key consumed or not. + */ + TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, + TEventCode aType); + + public: // From MEikListBoxObserver + + /** + * Handles list box events. + * @param aListBox The originating list box. + * @param aEventType A code for the event. + */ + void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType ); + + public: // From CEikDialog + + /** + * @see CEikDialog + */ + void HandleDialogPageEventL( TInt aEventID ); + + + protected: + void PreLayoutDynInitL(); + void PostLayoutDynInitL(); + TBool OkToExitL( TInt aButtonId ); + void ProcessCommandL( TInt aCommand ); + void PageChangedL( TInt aPageId ); + + private: + void ChangeTitleL( TBool aIsStarted ); + void DrawSettingsListL(); + void ShowSettingPageL( TInt aCalledFromMenu ); + void MoveEapTypeL( TInt aOldPos, TInt aNewPos ); + void DrawEapListL( TInt aWantedIndex ); + TInt ShowRadioButtonSettingPageL( TInt aTitle, + CDesCArrayFlat* aValues, + TInt aCurrentItem ); + void DrawCipherSuitesL(); + void CompleteReadCertificates( const TInt aResult); + void CompleteUiConstructionL(); + TInt CheckActiveUserCertificate(); + TInt CheckActiveCaCertificate(); + void UserCertificateHouseKeeping( TInt aSelected ); + void CaCertificateHouseKeeping( TInt aSelected ); + void CreateEapTypeDataBaseL(); + void SetCipherIconsL(); + void SetEapIconsL(); + TUint GetEnabledEapTypeCount(); + TBool IsPlainMschapv2Enabled(); + TBool IsPapEnabled(); + void GetHelpContext( TCoeHelpContext& aContext ) const; + + void GetFullCertLabelL( const SCertEntry& aCert, TDes& aFullLabel ); + + /** + * Initialize menu pane. + * @param aResourceId Menu pane resource id. + * @param CEikMenuPane Menu pane. + */ + void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); + + void ConfigureL( TBool aQuick ); + + + private: + CEapTlsPeapUiConnection* iConnection; + CEapTlsPeapUiDataConnection* iDataConnection; + CEapTlsPeapUiCipherSuites* iCipherSuites; + CEapTlsPeapUiCertificates* iCertificates; + + CEapTlsPeapUiTlsPeapData* iUiData; + CArrayFixFlat* iUiCipherSuites; + CArrayFixFlat* iUiUserCertificates; + CArrayFixFlat* iUiCACertificates; + CArrayFixFlat* iUiEapTypes; + + CAknSingleNumberStyleListBox* iUserCertificateListBox; + CAknSingleNumberStyleListBox* iCaCertificateListBox; + CAknSingleNumberStyleListBox* iCipherSuiteListBox; + CAknSingleNumberStyleListBox* iEapTypesListBox; + CEapTtlsSettingItemArray* iSettingArray; + CAknSettingStyleListBox* iSettingListBox; + CDesCArray* iEapTypeViewArray; + CDesCArray* iCipherSuitesViewArray; + CEapTlsPeapUiEapTypes* iEapTypes; + TIndexType iIndexType; + TInt iIndex; + HBufC* iPreviousText; + TInt* iButtonId; + + // Tells the status of UI construction. TRUE if UI construction is completed. + TBool iIsUIConstructionCompleted; + + // For exiting dialog + TBool iExiting; + }; + + +#endif // _EAPTTLSUIVIEW_H_ + +// End of File