eapol/eapol_framework/eapol_symbian/am/type/gsmsim/symbian/plugin/inc/EapSimDbUtils.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 8.1.7 %
    19 * %version: 10 %
    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 // For EAP-SIM private database. Database will be in the private folder of EAP-server (20026FCB).
    32 #ifdef SYMBIAN_SECURE_DBMS
    33 // The maximum length of database name is 0x40 (KDbMaxName), which is defined in d32dbms.h.
    33 // For EAP SIM secure database.
       
    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.
    34 
    37 
    35 _LIT(KEapSimDatabaseName, "eapsim.dat");
    38 _LIT(KDatabaseName, "c: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
    36 
    47 
    37 _LIT(KSimTableName, "eapsim");
    48 _LIT(KSimTableName, "eapsim");
    38 
    49 
    39 
    50 
    40 // CLASS DECLARATION
    51 // CLASS DECLARATION
    41 class EapSimDbUtils 
    52 class EapSimDbUtils 
    42 {
    53 {
    43 public:
    54 public:
    44 	
    55 	
    45 	static void OpenDatabaseL(
    56 	static void OpenDatabaseL(
    46 		RDbNamedDatabase& aDatabase,
    57 		RDbNamedDatabase& aDatabase, 
    47 		RFs& aFileServerSession,
    58 		RDbs& aSession, 
    48 		const TIndexType aIndexType,
    59 		const TIndexType aIndexType,
    49 		const TInt aIndex,
    60 		const TInt aIndex,
    50 		const eap_type_value_e aTunnelingType);
    61 		const eap_type_value_e aTunnelingType);
    51 
    62 
    52 	/**
    63 	/**
    86 	
    97 	
    87 	static void DeleteConfigurationL(		
    98 	static void DeleteConfigurationL(		
    88 		const TIndexType aIndexType,
    99 		const TIndexType aIndexType,
    89 		const TInt aIndex,
   100 		const TInt aIndex,
    90 		const eap_type_value_e aTunnelingType);
   101 		const eap_type_value_e aTunnelingType);
       
   102 
    91 };
   103 };
    92 
   104 
    93 #endif // _EAPSIMDBUTILS_H_
   105 #endif // _EAPSIMDBUTILS_H_
    94 
   106 
    95 // End of file
   107 // End of file