accesssec_plat/eaptlspeap_db_api/inc/EapTlsPeapUiDataConnection.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     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 _EAPTLSPEAPUIDATACONNECTION_H_
       
    20 #define _EAPTLSPEAPUIDATACONNECTION_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CEapTlsPeapUiConnection;
       
    25 class CEapTlsPeapUiTlsPeapData;
       
    26 
       
    27 
       
    28 class CEapTlsPeapUiDataConnection : public CBase
       
    29 {
       
    30 
       
    31 public:
       
    32 
       
    33     CEapTlsPeapUiDataConnection(CEapTlsPeapUiConnection * aUiConn);
       
    34 
       
    35     ~CEapTlsPeapUiDataConnection();
       
    36 
       
    37     TInt Open();
       
    38 
       
    39     TInt GetData(CEapTlsPeapUiTlsPeapData ** aDataPtr);
       
    40 
       
    41    	TInt Update();
       
    42 
       
    43     TInt Close();
       
    44 
       
    45 protected:
       
    46 
       
    47     TBool iIsOpened;
       
    48 
       
    49     CEapTlsPeapUiConnection * iUiConn;
       
    50 
       
    51     RDbNamedDatabase iDatabase;
       
    52 
       
    53     RDbView iView;
       
    54     
       
    55     CDbColSet* iColSet;
       
    56    
       
    57     CEapTlsPeapUiTlsPeapData * iDataPtr;
       
    58 
       
    59 private:
       
    60 	// Functions.
       
    61 	
       
    62     void FetchDataL();
       
    63     void UpdateDataL();
       
    64     
       
    65 private:	
       
    66 	// Member variables.
       
    67 
       
    68 	// Only used with EAP-FAST. Can't use the falg here.
       
    69     RDbView iFastSpecificView;
       
    70     
       
    71    // Only used with EAP-FAST. Can't use the flag here.
       
    72     CDbColSet*  iFastSpecificColSet;
       
    73 
       
    74 };
       
    75 
       
    76 #endif // _EAPTLSPEAPUIDATACONNECTION_H_
       
    77 
       
    78 // End of file