accesssec_plat/eapleap_db_api/inc/EapLeapUiConnection.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: 6.1.2 %
       
    20 */
       
    21 
       
    22 #ifndef _EAPLEAPUICONNECTION_H_
       
    23 #define _EAPLEAPUICONNECTION_H_
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 #include <d32dbms.h>
       
    28 #include <EapType.h>
       
    29 
       
    30 
       
    31 class CEapLeapUiDataConnection;
       
    32 
       
    33 class CEapLeapUiConnection : public CBase
       
    34 {
       
    35 
       
    36 public:
       
    37 
       
    38     CEapLeapUiConnection(
       
    39         const TIndexType iIndexType,
       
    40         const TInt iIndex,
       
    41         const TInt iTunnelingType);
       
    42 
       
    43     ~CEapLeapUiConnection();
       
    44 
       
    45     TInt Connect();
       
    46 
       
    47     TInt Close();
       
    48 
       
    49     CEapLeapUiDataConnection * GetDataConnection();
       
    50 
       
    51     TIndexType GetIndexType();
       
    52 
       
    53     TInt GetIndex();
       
    54 
       
    55     TInt GetTunnelingType();
       
    56 
       
    57     TInt GetDatabase(RDbNamedDatabase & aDatabase);
       
    58 
       
    59 protected:
       
    60 
       
    61     // Bearer type
       
    62 	TIndexType iIndexType;
       
    63 	
       
    64 	// Unique index
       
    65 	TInt iIndex;
       
    66 
       
    67 	// Tunneling type
       
    68 	TInt iTunnelingType;
       
    69 	
       
    70     TBool iIsConnected;	
       
    71 
       
    72     // database names, handlers etc...
       
    73 
       
    74     CEapLeapUiDataConnection * iDataConn;
       
    75 
       
    76     RDbNamedDatabase iDbNamedDatabase;
       
    77 
       
    78     RDbs iDbs;
       
    79 };
       
    80 
       
    81 
       
    82 #endif