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