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