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