1 /* |
|
2 * Copyright (c) 2001-2006 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: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: % |
|
20 */ |
|
21 |
|
22 #ifndef _EAPTLSPEAPUICERTIFICATES_H_ |
|
23 #define _EAPTLSPEAPUICERTIFICATES_H_ |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <AbsEapCertificateFetcher.h> |
|
27 |
|
28 |
|
29 class CEapTlsPeapUiConnection; |
|
30 class CEapGeneralSettings; |
|
31 class MEapTlsPeapUiCertificates; |
|
32 class CEapType; |
|
33 |
|
34 |
|
35 class CEapTlsPeapUiCertificates |
|
36 : public CBase |
|
37 //, public CAbsEapCertificateFetcher |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 CEapTlsPeapUiCertificates(CEapTlsPeapUiConnection * const aUiConn, MEapTlsPeapUiCertificates * const aParent); |
|
43 |
|
44 ~CEapTlsPeapUiCertificates(); |
|
45 |
|
46 TInt Open(); |
|
47 |
|
48 TInt GetCertificates(RPointerArray<EapCertificateEntry> ** aUserCerts, |
|
49 RPointerArray<EapCertificateEntry> ** aCACerts); |
|
50 |
|
51 TInt Update(); |
|
52 |
|
53 TInt Close(); |
|
54 |
|
55 private: |
|
56 |
|
57 TBool iIsOpened; |
|
58 |
|
59 CEapTlsPeapUiConnection * iUiConn; |
|
60 |
|
61 RPointerArray<EapCertificateEntry> * iUserCerts; |
|
62 |
|
63 RPointerArray<EapCertificateEntry> * iCACerts; |
|
64 |
|
65 TRequestStatus iStatus; |
|
66 |
|
67 CEapGeneralSettings *iEapGeneralSettings; |
|
68 |
|
69 MEapTlsPeapUiCertificates* iParent; |
|
70 |
|
71 CEapType* iEapTypeConnection; |
|
72 |
|
73 private: |
|
74 |
|
75 void SelectActiveCertificatesL(); |
|
76 |
|
77 void FetchDataL( |
|
78 const RPointerArray<EapCertificateEntry>& aAvailableCerts, |
|
79 RPointerArray<EapCertificateEntry> * const aArray); |
|
80 |
|
81 void UpdateL(); |
|
82 |
|
83 void SelectCertificatesL( |
|
84 const EapCertificateEntry::TCertType aCertType, |
|
85 const EAPSettings & aSettings, |
|
86 RPointerArray<EapCertificateEntry>& aAvailableCerts); |
|
87 |
|
88 void SaveCertificatesL( |
|
89 const EapCertificateEntry::TCertType aCertType, |
|
90 const RPointerArray<EapCertificateEntry>* const aAvailableCerts, |
|
91 EAPSettings & aSettings); |
|
92 }; |
|
93 |
|
94 #endif // _EAPTLSPEAPUICERTIFICATES_H_ |
|
95 |
|
96 // End of file |
|