diff -r 093cf0757204 -r 938269283a16 eapol/eapol_framework/eapol_symbian/am/type/aka/symbian/plugin/src/EapAka.cpp --- a/eapol/eapol_framework/eapol_symbian/am/type/aka/symbian/plugin/src/EapAka.cpp Fri May 14 15:54:13 2010 +0300 +++ b/eapol/eapol_framework/eapol_symbian/am/type/aka/symbian/plugin/src/EapAka.cpp Fri Jun 11 13:40:22 2010 +0300 @@ -16,7 +16,7 @@ */ /* -* %version: 15.1.3 % +* %version: 23 % */ // This is enumeration of EAPOL source code. @@ -37,11 +37,11 @@ #include #include "eap_am_type_aka_symbian.h" #include "EapAkaDbUtils.h" - - - +#include "EapConversion.h" #include "eap_am_tools_symbian.h" +#include "EapTraceSymbian.h" + // LOCAL CONSTANTS @@ -137,26 +137,19 @@ } // ---------------------------------------------------------- -TInt CEapAka::InvokeUiL() -{ - TInt buttonId(0); - - return buttonId; -} -// ---------------------------------------------------------- -CEapTypeInfo* CEapAka::GetInfoLC() +CEapTypeInfo* CEapAka::GetInfoL() { CEapTypeInfo* info = new(ELeave) CEapTypeInfo( (TDesC&)KReleaseDate, (TDesC&)KEapTypeVersion, (TDesC&)KManufacturer); - CleanupStack::PushL(info); return info; } // ---------------------------------------------------------- + void CEapAka::DeleteConfigurationL() { EapAkaDbUtils::DeleteConfigurationL(iIndexType, iIndex, iTunnelingType); @@ -171,19 +164,22 @@ // ---------------------------------------------------------- -void CEapAka::SetTunnelingType(const TInt aTunnelingType) -{ -#ifdef USE_EAP_EXPANDED_TYPES - - // Vendor id is eap_type_vendor_id_ietf always in this plugin. - iTunnelingType.set_eap_type_values(eap_type_vendor_id_ietf, aTunnelingType); - -#else - - iTunnelingType = static_cast(aTunnelingType); - -#endif //#ifdef USE_EAP_EXPANDED_TYPES -} +void CEapAka::SetTunnelingType(const TEapExpandedType aTunnelingType) + { + EAP_TRACE_DATA_DEBUG_SYMBIAN( + (EAPL("CEapAka::SetTunnelingType - tunneling type"), + aTunnelingType.GetValue().Ptr(), aTunnelingType.GetValue().Length())); + + eap_type_value_e aInternalType; + + TInt err = CEapConversion::ConvertExpandedEAPTypeToInternalType( + &aTunnelingType, + &aInternalType); + + iTunnelingType = aInternalType; + + + } // ---------------------------------------------------------- @@ -208,7 +204,7 @@ RDbNamedDatabase db; - RDbs session; + RFs session; EapAkaDbUtils::OpenDatabaseL(db, session, iIndexType, iIndex, iTunnelingType); @@ -227,7 +223,8 @@ iIndexType = aIndexType; iIndex = aIndex; - CleanupStack::PopAndDestroy(2); // db + CleanupStack::PopAndDestroy(&db); + CleanupStack::PopAndDestroy(&session); } // ---------------------------------------------------------- @@ -236,8 +233,8 @@ { RDbNamedDatabase db; - RDbs session; - + RFs session; + // This also creates the IAP entry if it doesn't exist EapAkaDbUtils::OpenDatabaseL(db, session, iIndexType, iIndex, iTunnelingType); @@ -250,8 +247,9 @@ iIndexType, iIndex, iTunnelingType); - - CleanupStack::PopAndDestroy(2); // db, session + + CleanupStack::PopAndDestroy(&db); + CleanupStack::PopAndDestroy(&session); } // ---------------------------------------------------------- @@ -260,8 +258,8 @@ { RDbNamedDatabase db; - RDbs session; - + RFs session; + // This also creates the IAP entry if it doesn't exist EapAkaDbUtils::OpenDatabaseL(db, session, iIndexType, iIndex, iTunnelingType); @@ -274,8 +272,9 @@ iIndexType, iIndex, iTunnelingType); - - CleanupStack::PopAndDestroy(2); // db, session + + CleanupStack::PopAndDestroy(&db); + CleanupStack::PopAndDestroy(&session); } // ---------------------------------------------------------- @@ -301,8 +300,8 @@ RDbNamedDatabase db; - RDbs session; - + RFs session; + EapAkaDbUtils::OpenDatabaseL(db, session, iIndexType, iIndex, iTunnelingType); CleanupClosePushL(session); @@ -316,8 +315,9 @@ aDestinationIndexType, aDestinationIndex, iTunnelingType); - - CleanupStack::PopAndDestroy(2); // db - + + CleanupStack::PopAndDestroy(&db); + CleanupStack::PopAndDestroy(&session); } + // End of file