|
1 /* |
|
2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description : Class looking after alarm fields for forms. |
|
15 * |
|
16 */ |
|
17 |
|
18 //debug |
|
19 #include "calendarui_debug.h" |
|
20 |
|
21 //user includes |
|
22 #include "CalenLunarLocalizedInfo.h" |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 |
|
27 // --------------------------------------------------------------------------- |
|
28 // CCalenLunarLocalizedInfo::NewL() |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 CCalenLunarLocalizedInfo* CCalenLunarLocalizedInfo::NewL() |
|
32 { |
|
33 TRACE_ENTRY_POINT; |
|
34 |
|
35 CCalenLunarLocalizedInfo* self = new (ELeave) CCalenLunarLocalizedInfo; |
|
36 CleanupStack::PushL(self); |
|
37 self->ConstructL(); |
|
38 CleanupStack::Pop(self); |
|
39 |
|
40 TRACE_EXIT_POINT; |
|
41 return self; |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // CCalenLunarLocalizedInfo::~CCalenLunarLocalizedInfo() |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 CCalenLunarLocalizedInfo::~CCalenLunarLocalizedInfo() |
|
49 { |
|
50 TRACE_ENTRY_POINT; |
|
51 TRACE_EXIT_POINT; |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------------------------- |
|
55 // CCalenLunarLocalizedInfo::CCalenLunarLocalizedInfo() |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 CCalenLunarLocalizedInfo::CCalenLunarLocalizedInfo() |
|
59 { |
|
60 TRACE_ENTRY_POINT; |
|
61 |
|
62 iLunarFestival.Set( KNullDesC ); |
|
63 iSolarFestival.Set( KNullDesC ); |
|
64 iSolarTerm.Set( KNullDesC ); |
|
65 iLunarMonthAndDay = KNullDesC; |
|
66 iGregorianDate = KNullDesC; |
|
67 |
|
68 TRACE_EXIT_POINT; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // CCalenLunarLocalizedInfo::ConstructL() |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 void CCalenLunarLocalizedInfo::ConstructL() |
|
76 { |
|
77 TRACE_ENTRY_POINT; |
|
78 TRACE_EXIT_POINT; |
|
79 } |
|
80 |
|
81 // --------------------------------------------------------------------------- |
|
82 // CCalenLunarLocalizedInfo::GetField() |
|
83 // --------------------------------------------------------------------------- |
|
84 // |
|
85 const TDesC& CCalenLunarLocalizedInfo::GetField( TField aField ) |
|
86 { |
|
87 TRACE_ENTRY_POINT; |
|
88 |
|
89 switch ( aField ) |
|
90 { |
|
91 case ELunarFestival: return LunarFestival(); |
|
92 case ESolarFestival: return SolarFestival(); |
|
93 case ESolarTerm: return SolarTerm(); |
|
94 case ELunarMonthAndDay: return LunarMonthAndDay(); |
|
95 case EGregorianDate: return GregorianDate(); |
|
96 default: |
|
97 ASSERT( EFalse ); |
|
98 return KNullDesC; |
|
99 } |
|
100 |
|
101 TRACE_EXIT_POINT; |
|
102 } |
|
103 |
|
104 // End of file |
|
105 |