accesssec_plat/eapmschapv2_db_api/inc/EapMsChapV2UiConnection.h
branchRCL_3
changeset 19 c74b3d9f6b9e
equal deleted inserted replaced
18:bad0cc58d154 19: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: 7.1.2 %
       
    20 */
       
    21 
       
    22 #ifndef _EAPMSCHAPV2UICONNECTION_H_
       
    23 #define _EAPMSCHAPV2UICONNECTION_H_
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 #include <d32dbms.h>
       
    28 #include <EapType.h>
       
    29 
       
    30 class CEapMsChapV2UiDataConnection;
       
    31 
       
    32 class CEapMsChapV2UiConnection : public CBase
       
    33 {
       
    34 
       
    35 public:
       
    36 
       
    37     CEapMsChapV2UiConnection(
       
    38 	    const TIndexType aIndexType,
       
    39 	    const TInt aIndex,
       
    40 	    const TInt aTunnelingType,
       
    41 	    const TInt aEAPType);
       
    42 
       
    43     ~CEapMsChapV2UiConnection();
       
    44 
       
    45     TInt Connect();
       
    46 
       
    47     TInt Close();
       
    48 
       
    49     CEapMsChapV2UiDataConnection * GetDataConnection();
       
    50 
       
    51     TIndexType GetIndexType();
       
    52 
       
    53     TInt GetIndex();
       
    54 
       
    55     TInt GetTunnelingType();
       
    56 
       
    57     TInt GetDatabase(RDbNamedDatabase & aDatabase);
       
    58     
       
    59     TInt GetBearerEAPType();
       
    60 
       
    61 protected:
       
    62 
       
    63     // Bearer type
       
    64 	TIndexType iIndexType;
       
    65 	
       
    66 	// Unique index
       
    67 	TInt iIndex;
       
    68 
       
    69 	// Tunneling type
       
    70 	TInt iTunnelingType;
       
    71 
       
    72     TBool iIsConnected;
       
    73     
       
    74     // database names, handlers etc...
       
    75 
       
    76     CEapMsChapV2UiDataConnection * iDataConn;
       
    77 
       
    78     RDbNamedDatabase iDbNamedDatabase;
       
    79 
       
    80     RDbs iDbs;
       
    81     
       
    82     // Holds the bearer EAP type.
       
    83     TInt iEAPType;
       
    84 };
       
    85 
       
    86 
       
    87 #endif
       
    88 
       
    89 // End of file
       
    90