eapol/eapol_framework/eapol_symbian/am/type/securid/symbian/plugin/src/EapGtcDbUtils.cpp
changeset 34 ad1f037f1ac2
parent 26 9abfd4f00d37
child 36 c98682f98478
equal deleted inserted replaced
31:372d2d6c5cf9 34:ad1f037f1ac2
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 38 %
    19 * %version: 45 %
    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
    34 #include "EapGtcDbDefaults.h"
    34 #include "EapGtcDbDefaults.h"
    35 #include "EapGtcDbParameterNames.h"
    35 #include "EapGtcDbParameterNames.h"
    36 #include "EapSecurIDDbParameterNames.h"
    36 #include "EapSecurIDDbParameterNames.h"
    37 
    37 
    38 #include <EapTraceSymbian.h>
    38 #include <EapTraceSymbian.h>
    39 #include <EapPluginTools.h>
    39 #include "EapPluginTools.h"
    40 
    40 
    41 const TUint KMaxSqlQueryLength = 512;
    41 const TUint KMaxSqlQueryLength = 512;
    42 const TInt KMicroSecsInAMinute = 60000000; // 60000000 micro seconds is 1 minute.
    42 const TInt KMicroSecsInAMinute = 60000000; // 60000000 micro seconds is 1 minute.
    43 
    43 
    44 // ================= MEMBER FUNCTIONS =======================
    44 // ================= MEMBER FUNCTIONS =======================
   456 	}
   456 	}
   457 			
   457 			
   458 	if (aSettings.iShowPassWordPromptPresent)
   458 	if (aSettings.iShowPassWordPromptPresent)
   459 		{	
   459 		{	
   460 		// If password was supplied set password prompting off
   460 		// If password was supplied set password prompting off
   461 		view.SetColL(colSet->ColNo(cf_str_EAP_GTC_passcode_prompt_literal), aSettings.iShowPassWordPrompt);		
   461 		if (aSettings.iShowPassWordPrompt != EFalse)
       
   462 			view.SetColL(colSet->ColNo(cf_str_EAP_GTC_passcode_prompt_literal), EEapDbTrue);		
       
   463 		else
       
   464 			view.SetColL(colSet->ColNo(cf_str_EAP_GTC_passcode_prompt_literal), EEapDbFalse);		
   462 		}
   465 		}
   463 		
   466 		
   464 	view.PutL();
   467 	view.PutL();
   465 
   468 
   466 	CleanupStack::PopAndDestroy(colSet);
   469 	CleanupStack::PopAndDestroy(colSet);
   671 	RFs aFileServerSession;
   674 	RFs aFileServerSession;
   672 
   675 
   673 	TInt error(KErrNone);
   676 	TInt error(KErrNone);
   674 	TFileName aPrivateDatabasePathName;
   677 	TFileName aPrivateDatabasePathName;
   675 	
   678 	
       
   679 	error = aFileServerSession.Connect();
       
   680 	EAP_TRACE_DEBUG_SYMBIAN((_L("EapGtcDbUtils::DeleteConfigurationL(): - aFileServerSession.Connect(), error=%d\n"), error));
       
   681 	User::LeaveIfError(error);
       
   682 
   676 	EapPluginTools::CreateDatabaseLC(
   683 	EapPluginTools::CreateDatabaseLC(
   677 		aDatabase,
   684 		aDatabase,
   678 		aFileServerSession,
   685 		aFileServerSession,
   679 		error,
   686 		error,
   680 		KEapGtcDatabaseName,
   687 		KEapGtcDatabaseName,