wlansecuritysettings/wlaneapsettingsui/EapPeap/ConfigUi/inc/EapPeapUiView.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: Header file of EAP PEAP UI setting dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef _EAPPEAPUIVIEW_H_
       
    21 #define _EAPPEAPUIVIEW_H_
       
    22 
       
    23 // INCLUDES
       
    24 #include <AknDialog.h>        // AVKON components
       
    25 #include <eikspane.h> // For changing status pane 
       
    26 #include <akntitle.h>
       
    27 #include <aknsettingitemlist.h>
       
    28 #include <aknlists.h>
       
    29 #include <aknselectionlist.h>
       
    30 #include <eiklbo.h>
       
    31 #include "EapPeapUi.hrh"
       
    32 #include <EapTlsPeapUiCipherSuite.h>
       
    33 #include <EapTlsPeapUiEapType.h>
       
    34 #include <EapTlsPeapUiCertificate.h>
       
    35 #include <AbsEapTlsPeapUiCertificates.h>
       
    36 #include <EapTlsPeapUiConnection.h>
       
    37 #include <EapTlsPeapUiDataConnection.h>
       
    38 #include <EapTlsPeapUiTlsPeapData.h>
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 class CAknSettingStyleListBox;
       
    42 class CSettingsListBoxItemDrawer;
       
    43 class CEapPeapSettingItemArray;
       
    44 
       
    45 
       
    46 // CLASS DECLARATION
       
    47 
       
    48 /**
       
    49 *  Settings dialog class definition
       
    50 */
       
    51 class CEapPeapUiDialog : public CAknDialog, 
       
    52                          public MEapTlsPeapUiCertificates,
       
    53                          public MEikListBoxObserver
       
    54     {
       
    55     public:
       
    56         CEapPeapUiDialog( CEapTlsPeapUiConnection* aConnection, 
       
    57                           TIndexType aIndexType, TInt aIndex, 
       
    58                           TInt& aButtonId );
       
    59 
       
    60         ~CEapPeapUiDialog();
       
    61 
       
    62         /**
       
    63         * Create and launch dialog.
       
    64         * @param aResourceId The resource ID of the dialog to load.
       
    65         * @return The ID of the button that closed the dialog
       
    66         */
       
    67         TInt ConstructAndRunLD( TInt aResourceId );
       
    68         
       
    69         /**
       
    70         * Chain into key event handler.
       
    71         * @param aKeyEvent The event.
       
    72         * @param aType The type of key event.
       
    73         * @return Was the key consumed or not.
       
    74         */
       
    75         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
       
    76                                           TEventCode aType);
       
    77                                           
       
    78         
       
    79     public: // From MEikListBoxObserver
       
    80         
       
    81         /**
       
    82         * Handles list box events.
       
    83         * @param aListBox   The originating list box.
       
    84         * @param aEventType A code for the event.
       
    85         */
       
    86         void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
       
    87         
       
    88     
       
    89     public: // From CEikDialog
       
    90             
       
    91         /**
       
    92         * @see CEikDialog
       
    93         */
       
    94         void HandleDialogPageEventL( TInt aEventID );
       
    95                                           
       
    96 
       
    97     protected:
       
    98         void PreLayoutDynInitL();
       
    99         void PostLayoutDynInitL();
       
   100         TBool OkToExitL( TInt aButtonId );
       
   101         void ProcessCommandL( TInt aCommand );
       
   102         void PageChangedL( TInt aPageId );
       
   103 
       
   104     private:
       
   105         void ChangeTitleL( TBool aIsStarted );
       
   106         void DrawSettingsListL();
       
   107         void ShowSettingPageL( TInt aCalledFromMenu ); 
       
   108         void MoveEapTypeL( TInt aOldPos, TInt aNewPos );
       
   109         void DrawEapListL(TInt aWantedIndex);
       
   110         TInt ShowRadioButtonSettingPageL( TInt aTitle, CDesCArrayFlat* aValues,
       
   111                                           TInt aCurrentItem );
       
   112         void DrawCipherSuitesL();
       
   113         void CompleteReadCertificates( const TInt aResult );
       
   114         void CompleteUiConstructionL();
       
   115         TInt CheckActiveUserCertificate();
       
   116         TInt CheckActiveCaCertificate();
       
   117         void UserCertificateHouseKeeping( TInt aSelected );
       
   118         void CaCertificateHouseKeeping( TInt aSelected );
       
   119         void CreateEapTypeDataBaseL();    
       
   120         void SetCipherIconsL();
       
   121         void SetEapIconsL();
       
   122         TUint GetEnabledEapTypeCount();
       
   123         void GetHelpContext(TCoeHelpContext& aContext) const;
       
   124             
       
   125         void GetFullCertLabelL( const SCertEntry& aCert, TDes& aFullLabel );
       
   126 
       
   127         /**
       
   128         * Initialize menu pane.
       
   129         * @param aResourceId Menu pane resource id.
       
   130         * @param CEikMenuPane Menu pane.
       
   131         */
       
   132         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   133 
       
   134         void ConfigureL( TBool aQuick );
       
   135         
       
   136     private:
       
   137         CEapTlsPeapUiConnection* iConnection;
       
   138         CEapTlsPeapUiDataConnection* iDataConnection;
       
   139         CEapTlsPeapUiCipherSuites* iCipherSuites;
       
   140         CEapTlsPeapUiCertificates* iCertificates;
       
   141         
       
   142         CEapTlsPeapUiTlsPeapData* iUiData;
       
   143         CArrayFixFlat<TEapTlsPeapUiCipherSuite>* iUiCipherSuites;
       
   144         CArrayFixFlat<TEapTlsPeapUiCertificate>* iUiUserCertificates;
       
   145         CArrayFixFlat<TEapTlsPeapUiCertificate>* iUiCACertificates;
       
   146         CArrayFixFlat<TEapTlsPeapUiEapType>* iUiEapTypes;
       
   147                                 
       
   148         CAknSingleNumberStyleListBox* iUserCertificateListBox;
       
   149         CAknSingleNumberStyleListBox* iCaCertificateListBox;
       
   150         CAknSingleNumberStyleListBox* iCipherSuiteListBox;
       
   151         CAknSingleNumberStyleListBox* iEapTypesListBox;
       
   152         CEapPeapSettingItemArray* iSettingArray;
       
   153         CAknSettingStyleListBox* iSettingListBox;
       
   154         CDesCArray* iEapTypeViewArray;
       
   155         CDesCArray* iCipherSuitesViewArray;
       
   156         CEapTlsPeapUiEapTypes* iEapTypes;
       
   157         TIndexType iIndexType; 
       
   158         TInt iIndex;
       
   159         HBufC* iPreviousText;
       
   160         TInt* iButtonId;
       
   161         
       
   162         // Tells the status of UI construction. TRUE if UI construction is completed.
       
   163 		TBool iIsUIConstructionCompleted;
       
   164 		
       
   165 		// For exiting dialog
       
   166 		TBool iExiting;
       
   167     };
       
   168 
       
   169 
       
   170 #endif // _EAPPEAPUIVIEW_H_
       
   171 
       
   172 //  End of File