|
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 #ifndef _EAPTLSPEAPUICERTIFICATES_H_ |
|
20 #define _EAPTLSPEAPUICERTIFICATES_H_ |
|
21 |
|
22 #include <CertEntry.h> |
|
23 #include <e32base.h> |
|
24 |
|
25 class CEapTlsPeapUiConnection; |
|
26 class TEapTlsPeapUiCertificate; |
|
27 class CEapTlsPeapCertFetcher; |
|
28 class MEapTlsPeapUiCertificates; |
|
29 |
|
30 class CEapTlsPeapUiCertificates : public CBase |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 CEapTlsPeapUiCertificates(CEapTlsPeapUiConnection * const aUiConn, MEapTlsPeapUiCertificates * const aParent); |
|
36 |
|
37 ~CEapTlsPeapUiCertificates(); |
|
38 |
|
39 TInt Open(); |
|
40 |
|
41 TInt GetCertificates(CArrayFixFlat<TEapTlsPeapUiCertificate> ** aUserCerts, |
|
42 CArrayFixFlat<TEapTlsPeapUiCertificate> ** aCACerts); |
|
43 |
|
44 TInt Update(); |
|
45 |
|
46 TInt Close(); |
|
47 |
|
48 void CompleteReadCertificatesL( |
|
49 const RArray<SCertEntry>& aUserCerts, |
|
50 const RArray<SCertEntry>& aCACerts); |
|
51 |
|
52 |
|
53 private: |
|
54 |
|
55 TBool iIsOpened; |
|
56 |
|
57 CEapTlsPeapUiConnection * iUiConn; |
|
58 |
|
59 RDbNamedDatabase iDatabase; |
|
60 |
|
61 CArrayFixFlat<TEapTlsPeapUiCertificate> * iUserCerts; |
|
62 |
|
63 CArrayFixFlat<TEapTlsPeapUiCertificate> * iCACerts; |
|
64 |
|
65 TRequestStatus iStatus; |
|
66 |
|
67 CEapTlsPeapCertFetcher* iCertFetcher; |
|
68 |
|
69 MEapTlsPeapUiCertificates* iParent; |
|
70 |
|
71 private: |
|
72 |
|
73 void FetchDataL( |
|
74 const TDesC& aTableName, |
|
75 const RArray<SCertEntry>& aAvailableCerts, |
|
76 CArrayFixFlat<TEapTlsPeapUiCertificate> * const aArray); |
|
77 |
|
78 void UpdateL(); |
|
79 }; |
|
80 |
|
81 #endif // _EAPTLSPEAPUICERTIFICATES_H_ |
|
82 |
|
83 // End of file |