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