eapol/eapol_framework/eapol_symbian/am/type/aka/symbian/plugin/inc/EapAkaDbUtils.h
changeset 26 9abfd4f00d37
parent 2 1c7bc153c08e
child 34 ad1f037f1ac2
equal deleted inserted replaced
25:e03a3db4489e 26:9abfd4f00d37
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 9 %
    19 * %version: 7.1.5 %
    20 */
    20 */
    21 
    21 
    22 #ifndef _EAPAKADBUTILS_H_
    22 #ifndef _EAPAKADBUTILS_H_
    23 #define _EAPAKADBUTILS_H_
    23 #define _EAPAKADBUTILS_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-AKA private database. Database will be in the private folder of EAP-server (20026FCB).
    33 // For EAP AKA 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 eapaka.dat will be saved in the 
       
    35 // data cage path for DBMS. So it will be in "\private\100012a5\eapaka.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:eapaka.dat");
    35 _LIT(KEapAkaDatabaseName, "eapaka.dat");
    39 
       
    40 _LIT(KSecureUIDFormat, "SECURE[102072e9]"); // For the security policy.
       
    41 
       
    42 #else
       
    43 
       
    44 _LIT(KDatabaseName, "c:\\system\\data\\eapaka.dat");
       
    45 
       
    46 #endif // #ifdef SYMBIAN_SECURE_DBMS
       
    47 
    36 
    48 _LIT(KAkaTableName, "eapaka");
    37 _LIT(KAkaTableName, "eapaka");
    49 
    38 
    50 // CLASS DECLARATION
    39 // CLASS DECLARATION
    51 class EapAkaDbUtils 
    40 class EapAkaDbUtils 
    52 {
    41 {
       
    42 
    53 public:
    43 public:
    54 	
    44 	
    55 	static void OpenDatabaseL(
    45 	static void OpenDatabaseL(
    56 		RDbNamedDatabase& aDatabase, 
    46 		RDbNamedDatabase& aDatabase, 
    57 		RDbs& aSession, 
    47 		RFs& aFileServerSession,
    58 		const TIndexType aIndexType,
    48 		const TIndexType aIndexType,
    59 		const TInt aIndex,
    49 		const TInt aIndex,
    60 		const eap_type_value_e aTunnelingType);
    50 		const eap_type_value_e aTunnelingType);
    61 
    51 
    62 	/**
    52 	/**
    96 		
    86 		
    97 	static void DeleteConfigurationL(		
    87 	static void DeleteConfigurationL(		
    98 		const TIndexType aIndexType,
    88 		const TIndexType aIndexType,
    99 		const TInt aIndex,
    89 		const TInt aIndex,
   100 		const eap_type_value_e aTunnelingType);
    90 		const eap_type_value_e aTunnelingType);
   101 
       
   102 };
    91 };
   103 
    92 
   104 #endif // _EAPAKADBUTILS_H_
    93 #endif // _EAPAKADBUTILS_H_
   105 
    94 
   106 // End of file
    95 // End of file