eapol/eapol_framework/eapol_symbian/am/type/gsmsim/symbian/plugin/src/EapSim.cpp
changeset 49 43351a4f2da3
parent 34 ad1f037f1ac2
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 26 %
    19 * %version: 30 %
    20 */
    20 */
    21 
    21 
    22 // This is enumeration of EAPOL source code.
    22 // This is enumeration of EAPOL source code.
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    24 	#undef EAP_FILE_NUMBER_ENUM
    24 	#undef EAP_FILE_NUMBER_ENUM
    59 {
    59 {
    60 }
    60 }
    61 
    61 
    62 // ----------------------------------------------------------
    62 // ----------------------------------------------------------
    63 
    63 
    64 CEapSim* CEapSim::NewL(const SIapInfo *aIapInfo)
    64 CEapSim* CEapSim::NewL(const SPluginInfo *aIapInfo)
    65 {
    65 {
    66 	return new (ELeave) CEapSim(aIapInfo->indexType, aIapInfo->index);
    66 	return new (ELeave) CEapSim(aIapInfo->indexType, aIapInfo->index);
    67 }
    67 }
    68 
    68 
    69 // ----------------------------------------------------------
    69 // ----------------------------------------------------------
   178 
   178 
   179 iTunnelingType = aInternalType;
   179 iTunnelingType = aInternalType;
   180 
   180 
   181 }
   181 }
   182 
   182 
   183 
   183 // ----------------------------------------------------------
   184 // ----------------------------------------------------------
   184 
   185 void CEapSim::SetIndexL(
   185 void CEapSim::SetIndexL(
   186 		const TIndexType aIndexType, 
   186 		const TIndexType aIndexType, 
   187 		const TInt aIndex)
   187 		const TInt aIndex)
   188 {		
   188 {		
   189 	// First delete the target configuration
   189 	// First delete the target configuration
   259 
   259 
   260 	CleanupStack::PopAndDestroy(&db);
   260 	CleanupStack::PopAndDestroy(&db);
   261 	CleanupStack::PopAndDestroy(&session);
   261 	CleanupStack::PopAndDestroy(&session);
   262 }
   262 }
   263 
   263 
       
   264 // ----------------------------------------------------------
       
   265 
   264 void CEapSim::GetConfigurationL(EAPSettings& aSettings)
   266 void CEapSim::GetConfigurationL(EAPSettings& aSettings)
   265 {
   267 {
   266 	RDbNamedDatabase db;
   268 	RDbNamedDatabase db;
   267 
   269 
   268 	RFs session;
   270 	RFs session;
   287 	session.Close();
   289 	session.Close();
   288 
   290 
   289 	CleanupStack::PopAndDestroy(&db);
   291 	CleanupStack::PopAndDestroy(&db);
   290 	CleanupStack::PopAndDestroy(&session);
   292 	CleanupStack::PopAndDestroy(&session);
   291 }
   293 }
       
   294 
       
   295 // ----------------------------------------------------------
   292 
   296 
   293 void CEapSim::CopySettingsL(
   297 void CEapSim::CopySettingsL(
   294 	const TIndexType aDestinationIndexType,
   298 	const TIndexType aDestinationIndexType,
   295 	const TInt aDestinationIndex)
   299 	const TInt aDestinationIndex)
   296 {
   300 {
   336 	CleanupStack::PopAndDestroy(&db);
   340 	CleanupStack::PopAndDestroy(&db);
   337 	CleanupStack::PopAndDestroy(&session);
   341 	CleanupStack::PopAndDestroy(&session);
   338 	
   342 	
   339 }
   343 }
   340 
   344 
       
   345 // ----------------------------------------------------------
       
   346 
       
   347 TInt CEapSim::InitialisePacStore(AbsPacStoreInitializer * const /* initializer */)
       
   348 {
       
   349 	return KErrNone;
       
   350 }
       
   351 
       
   352 // ----------------------------------------------------------
   341 	
   353 	
   342 // End of file
   354 // End of file