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