eapol/eapol_framework/eapol_symbian/am/type/securid/symbian/plugin/inc/EapGtcDbUtils.h
branchRCL_3
changeset 18 bad0cc58d154
parent 2 1c7bc153c08e
child 19 c74b3d9f6b9e
equal deleted inserted replaced
17:30e048a7b597 18:bad0cc58d154
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 10 %
    19 * %version: 8.1.6 %
    20 */
    20 */
    21 
    21 
    22 #ifndef EAPGTCDBUTILS_H
    22 #ifndef EAPGTCDBUTILS_H
    23 #define EAPGTCDBUTILS_H
    23 #define EAPGTCDBUTILS_H
    24 
    24 
    27 #include <EapType.h>
    27 #include <EapType.h>
    28 #include "eap_header.h"
    28 #include "eap_header.h"
    29 
    29 
    30 // LOCAL CONSTANTS
    30 // LOCAL CONSTANTS
    31 
    31 
    32 #ifdef SYMBIAN_SECURE_DBMS
    32 // For EAP-GTC private database. Database will be in the private folder of EAP-server (20026FCB).
    33 // For EAP GTC secure database.
    33 // The maximum length of database name is 0x40 (KDbMaxName), which is defined in d32dbms.h.
    34 // Full path is not needed. The database eapgtc.dat will be saved in the 
       
    35 // data cage path for DBMS. So it will be in "\private\100012a5\eapgtc.dat" in C: drive.
       
    36 // The maximum length of database name is 0x40 (KDbMaxName) , which is defined in d32dbms.h.
       
    37 
    34 
    38 _LIT(KGtcDatabaseName, "c:eapgtc.dat");
    35 _LIT(KEapGtcDatabaseName, "eapgtc.dat");
    39 
       
    40 _LIT(KGtcSecureUIDFormat, "SECURE[102072e9]"); // For the security policy.
       
    41 
       
    42 #else
       
    43 
       
    44 _LIT(KGtcDatabaseName, "c:\\system\\data\\eapgtc.dat");
       
    45 
       
    46 #endif // #ifdef SYMBIAN_SECURE_DBMS
       
    47 
    36 
    48 _LIT(KGtcTableName, "eapgtc");
    37 _LIT(KGtcTableName, "eapgtc");
    49 
    38 
    50 // CLASS DECLARATION
    39 // CLASS DECLARATION
    51 class EapGtcDbUtils 
    40 class EapGtcDbUtils 
    58 	* @param aSession Handle to session
    47 	* @param aSession Handle to session
    59 	* @param aIndexType Bearer type
    48 	* @param aIndexType Bearer type
    60 	* @param aIndex Index
    49 	* @param aIndex Index
    61 	*/
    50 	*/
    62 	static void OpenDatabaseL(
    51 	static void OpenDatabaseL(
    63 		RDbNamedDatabase& aDatabase, 
    52 		RDbNamedDatabase& aDatabase,
    64 		RDbs& aSession, 
    53 		RFs& aFileServerSession,
    65 		const TIndexType aIndexType,
    54 		const TIndexType aIndexType,
    66 		const TInt aIndex,
    55 		const TInt aIndex,
    67 		const eap_type_value_e aTunnelingType);
    56 		const eap_type_value_e aTunnelingType);
    68 	
    57 	
    69 	/**
    58 	/**
   103 		
    92 		
   104 	static void DeleteConfigurationL(		
    93 	static void DeleteConfigurationL(		
   105 		const TIndexType aIndexType,
    94 		const TIndexType aIndexType,
   106 		const TInt aIndex,
    95 		const TInt aIndex,
   107 		const eap_type_value_e aTunnelingType);
    96 		const eap_type_value_e aTunnelingType);
   108 
       
   109 };
    97 };
   110 
    98 
   111 #endif // EAPGTCBUTILS_H
    99 #endif // EAPGTCBUTILS_H
   112 
   100 
   113 // End of File
   101 // End of File