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