pimappsupport/chinesecalendaralg/originalsrc/ChineseDate.cpp
branchRCL_3
changeset 12 38571fd2a704
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pimappsupport/chinesecalendaralg/originalsrc/ChineseDate.cpp	Fri Mar 12 15:42:35 2010 +0200
@@ -0,0 +1,76 @@
+// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "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:
+// Implementation of the TChineseDate class.
+// 
+//
+
+// User includes
+#include "calconv.h"
+
+
+//
+// Construction/Destruction
+//
+
+//------------------------------------------------------
+// Class:       TChineseDate
+// Function:    TChineseDate
+// Arguments:   None
+//
+// Comments:    Constructor
+//
+// Return:      None
+//------------------------------------------------------
+EXPORT_C TChineseDate::TChineseDate()
+	{
+	}
+
+
+//------------------------------------------------------
+// Class:       TChineseDate
+// Function:    operator==
+// Arguments:   const TChineseDate &
+//
+// Comments:    overloaded == operator
+//
+// Return:      TBool - ETrue if the TChineseDate classes
+//				are the same
+//------------------------------------------------------
+EXPORT_C TBool TChineseDate::operator==(const TChineseDate &aDate) const
+	{
+	TBool rtn = ETrue;
+
+	if(iCycle != aDate.iCycle)
+		{
+		rtn = EFalse;
+		}
+	if(iYear != aDate.iYear)
+		{
+		rtn = EFalse;
+		}
+	if(iMonth != aDate.iMonth)
+		{
+		rtn = EFalse;
+		}
+	if(iLeapMonth != aDate.iLeapMonth)
+		{
+		rtn = EFalse;
+		}
+	if(iDay != aDate.iDay)
+		{
+		rtn = EFalse;
+		}
+
+	return rtn;
+	}