eapol/eapol_framework/eapol_symbian/am/type/symbian/plugin/common/EapTypeInfo.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/eapol/eapol_framework/eapol_symbian/am/type/symbian/plugin/common/EapTypeInfo.cpp Thu Dec 17 08:47:43 2009 +0200
@@ -0,0 +1,90 @@
+/*
+* Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: EAP and WLAN authentication protocols.
+*
+*/
+
+
+// This is enumeration of EAPOL source code.
+#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
+ #undef EAP_FILE_NUMBER_ENUM
+ #define EAP_FILE_NUMBER_ENUM 363
+ #undef EAP_FILE_NUMBER_DATE
+ #define EAP_FILE_NUMBER_DATE 1127594498
+#endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
+
+
+// INCLUDE FILES
+#include <EapTypeInfo.h>
+
+// ================= MEMBER FUNCTIONS =======================
+CEapTypeInfo::CEapTypeInfo()
+{
+}
+
+CEapTypeInfo::CEapTypeInfo(const TDesC& aReleaseDate, const TDesC& aVersion,
+ const TDesC& aManufacturer)
+: iVersion(aVersion),
+iManufacturer(aManufacturer)
+{
+ // Format the release date according to locale
+ TTime date(aReleaseDate);
+ _LIT(KDateFormat, "%/0%1%/1%2%/2%3%/3");
+ TRAPD(err, date.FormatL(iReleaseDate, KDateFormat));
+ if (err != KErrNone)
+ {
+ // Something went wrong. Clear release date.
+ iReleaseDate.SetLength(0);
+ }
+}
+
+// ----------------------------------------------------------
+
+CEapTypeInfo::~CEapTypeInfo()
+{
+}
+
+// ----------------------------------------------------------
+
+void CEapTypeInfo::Set(const TDesC& aReleaseDate, const TDesC& aVersion,
+ const TDesC& aManufacturer)
+{
+ iReleaseDate = aReleaseDate;
+ iVersion = aVersion;
+ iManufacturer = aManufacturer;
+}
+
+// ----------------------------------------------------------
+
+const TDesC& CEapTypeInfo::ReleaseDate() const
+{
+ return iReleaseDate;
+}
+
+// ----------------------------------------------------------
+
+const TDesC& CEapTypeInfo::Version() const
+{
+ return iVersion;
+}
+
+// ----------------------------------------------------------
+
+const TDesC& CEapTypeInfo::Manufacturer() const
+{
+ return iManufacturer;
+}
+
+
+// End of file