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