eapol/eapol_framework/eapol_symbian/am/type/gsmsim/symbian/plugin/inc/EapSimDbUtils.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.7 %
    20 */
    20 */
    21 
    21 
    22 #ifndef _EAPSIMDBUTILS_H_
    22 #ifndef _EAPSIMDBUTILS_H_
    23 #define _EAPSIMDBUTILS_H_
    23 #define _EAPSIMDBUTILS_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-SIM private database. Database will be in the private folder of EAP-server (20026FCB).
    33 // For EAP SIM 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 eapsim.dat will be saved in the 
       
    35 // data cage path for DBMS. So it will be in "\private\100012a5\eapsim.dat" in C: drive.
       
    36 // The maximum length of database name is 0x40 (KDbMaxName) , which is defined in d32dbms.h.
       
    37 
    34 
    38 _LIT(KDatabaseName, "c:eapsim.dat");
    35 _LIT(KEapSimDatabaseName, "eapsim.dat");
    39 
       
    40 _LIT(KSecureUIDFormat, "SECURE[102072e9]"); // For the security policy.
       
    41 
       
    42 #else
       
    43 
       
    44 _LIT(KDatabaseName, "c:\\system\\data\\eapsim.dat");
       
    45 
       
    46 #endif //#ifdef SYMBIAN_SECURE_DBMS
       
    47 
    36 
    48 _LIT(KSimTableName, "eapsim");
    37 _LIT(KSimTableName, "eapsim");
    49 
    38 
    50 
    39 
    51 // CLASS DECLARATION
    40 // CLASS DECLARATION
    52 class EapSimDbUtils 
    41 class EapSimDbUtils 
    53 {
    42 {
    54 public:
    43 public:
    55 	
    44 	
    56 	static void OpenDatabaseL(
    45 	static void OpenDatabaseL(
    57 		RDbNamedDatabase& aDatabase, 
    46 		RDbNamedDatabase& aDatabase,
    58 		RDbs& aSession, 
    47 		RFs& aFileServerSession,
    59 		const TIndexType aIndexType,
    48 		const TIndexType aIndexType,
    60 		const TInt aIndex,
    49 		const TInt aIndex,
    61 		const eap_type_value_e aTunnelingType);
    50 		const eap_type_value_e aTunnelingType);
    62 
    51 
    63 	/**
    52 	/**
    97 	
    86 	
    98 	static void DeleteConfigurationL(		
    87 	static void DeleteConfigurationL(		
    99 		const TIndexType aIndexType,
    88 		const TIndexType aIndexType,
   100 		const TInt aIndex,
    89 		const TInt aIndex,
   101 		const eap_type_value_e aTunnelingType);
    90 		const eap_type_value_e aTunnelingType);
   102 
       
   103 };
    91 };
   104 
    92 
   105 #endif // _EAPSIMDBUTILS_H_
    93 #endif // _EAPSIMDBUTILS_H_
   106 
    94 
   107 // End of file
    95 // End of file