|
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Implementation of the TArithmeticalDate class. |
|
15 // |
|
16 // |
|
17 |
|
18 // User includes |
|
19 #include "calconv.h" |
|
20 |
|
21 // |
|
22 // Construction/Destruction |
|
23 // |
|
24 |
|
25 //------------------------------------------------------ |
|
26 // Class: TArithmeticalDate |
|
27 // Function: TArithmeticalDate |
|
28 // Arguments: None |
|
29 // |
|
30 // Comments: Constructor |
|
31 // |
|
32 // Return: None |
|
33 //------------------------------------------------------ |
|
34 EXPORT_C TArithmeticalDate::TArithmeticalDate() |
|
35 { |
|
36 } |
|
37 |
|
38 //------------------------------------------------------ |
|
39 // Class: TArithmeticalDate |
|
40 // Function: operator == |
|
41 // Arguments: const TArithmeticalDate & |
|
42 // |
|
43 // Comments: overloaded == operator |
|
44 // |
|
45 // Return: TBool - ETrue if both the TArithmeticalDate |
|
46 // classes are the same |
|
47 //------------------------------------------------------ |
|
48 EXPORT_C TBool TArithmeticalDate::operator ==(const TArithmeticalDate &aDate) const |
|
49 { |
|
50 TBool rtn = ETrue; |
|
51 if(iYear != aDate.iYear) |
|
52 { |
|
53 rtn = EFalse; |
|
54 } |
|
55 if(iMonth != aDate.iMonth) |
|
56 { |
|
57 rtn = EFalse; |
|
58 } |
|
59 if(iDay != aDate.iDay) |
|
60 { |
|
61 rtn = EFalse; |
|
62 } |
|
63 return rtn; |
|
64 } |