9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: CalenMonthData implementation. |
14 * Description: For data of MonthView by one day. |
15 * |
15 * |
16 */ |
16 */ |
|
17 |
17 |
18 |
18 |
19 |
19 //debug |
20 //debug |
20 #include "calendarui_debug.h" |
21 #include "calendarui_debug.h" |
21 |
22 |
22 // INCLUDES |
23 // INCLUDES |
23 #include "calenmonthdata.h" |
24 #include "calenmonthdata.h" |
24 #include "OstTraceDefinitions.h" |
|
25 #ifdef OST_TRACE_COMPILER_IN_USE |
|
26 #include "calenmonthdataTraces.h" |
|
27 #endif |
|
28 |
|
29 |
25 |
30 |
26 |
31 // ================= MEMBER FUNCTIONS ======================= |
27 // ================= MEMBER FUNCTIONS ======================= |
32 |
28 |
33 // ---------------------------------------------------------------------------- |
29 // C++ default constructor can NOT contain any code, that |
34 // CalenMonthData::CalenMonthData |
30 // might leave. |
35 // |
|
36 // (other items were commented in a header). |
|
37 // ---------------------------------------------------------------------------- |
|
38 // |
31 // |
39 CalenMonthData::CalenMonthData() |
32 TCalenMonthData::TCalenMonthData() |
40 : mDay(QDateTime()), mHasEvents(false) |
33 : iDay(TInt64(0)), iHasEvents(EFalse) |
41 { |
34 { |
42 OstTraceFunctionEntry0( CALENMONTHDATA_CALENMONTHDATA_ENTRY ); |
35 TRACE_ENTRY_POINT; |
43 |
36 TRACE_EXIT_POINT; |
44 OstTraceFunctionExit0( CALENMONTHDATA_CALENMONTHDATA_EXIT ); |
|
45 } |
37 } |
46 |
38 |
47 // ---------------------------------------------------------------------------- |
39 // C++ constructor can NOT contain any code, that |
48 // CalenMonthData::CalenMonthData |
40 // might leave. |
49 // |
41 // |
|
42 // ----------------------------------------------------------------------------- |
|
43 // ?classname::?member_function |
|
44 // ?implementation_description |
50 // (other items were commented in a header). |
45 // (other items were commented in a header). |
51 // ---------------------------------------------------------------------------- |
46 // ----------------------------------------------------------------------------- |
52 // |
47 // |
53 CalenMonthData::CalenMonthData |
48 TCalenMonthData::TCalenMonthData |
54 (QDateTime day) |
49 (TTime aDay) |
55 : mDay(day), mHasEvents(false) |
50 : iDay(aDay), iHasEvents(EFalse) |
56 { |
51 { |
57 OstTraceFunctionEntry0( DUP1_CALENMONTHDATA_CALENMONTHDATA_ENTRY ); |
52 TRACE_ENTRY_POINT; |
58 |
53 TRACE_EXIT_POINT; |
59 OstTraceFunctionExit0( DUP1_CALENMONTHDATA_CALENMONTHDATA_EXIT ); |
|
60 } |
54 } |
61 |
55 |
62 // ---------------------------------------------------------------------------- |
56 // Destructor |
63 // CalenMonthData::~CalenMonthData |
57 // ----------------------------------------------------------------------------- |
64 // |
58 // ?classname::?member_function |
|
59 // ?implementation_description |
65 // (other items were commented in a header). |
60 // (other items were commented in a header). |
66 // ---------------------------------------------------------------------------- |
61 // ----------------------------------------------------------------------------- |
67 // |
62 // |
68 CalenMonthData::~CalenMonthData() |
63 TCalenMonthData::~TCalenMonthData() |
69 { |
64 { |
70 OstTraceFunctionEntry0( DUP2_CALENMONTHDATA_CALENMONTHDATA_ENTRY ); |
65 TRACE_ENTRY_POINT; |
71 |
66 TRACE_EXIT_POINT; |
72 OstTraceFunctionExit0( DUP2_CALENMONTHDATA_CALENMONTHDATA_EXIT ); |
|
73 } |
67 } |
74 |
68 |
75 // --------------------------------------------------------- |
69 // --------------------------------------------------------- |
76 // CalenMonthData::Day |
70 // TCalenMonthData::Day |
77 // return day |
71 // return day |
78 // (other items were commented in a header). |
72 // (other items were commented in a header). |
79 // --------------------------------------------------------- |
73 // --------------------------------------------------------- |
80 // |
74 // |
81 QDateTime CalenMonthData::Day() |
75 TTime TCalenMonthData::Day() |
82 { |
76 { |
83 OstTraceFunctionEntry0( CALENMONTHDATA_DAY_ENTRY ); |
77 TRACE_ENTRY_POINT; |
84 |
78 |
85 OstTraceFunctionExit0( CALENMONTHDATA_DAY_EXIT ); |
79 TRACE_EXIT_POINT; |
86 return mDay; |
80 return iDay; |
87 } |
81 } |
88 |
82 |
89 // ----------------------------------------------------------------------------- |
83 // ----------------------------------------------------------------------------- |
90 // ?classname::SetHasEvents |
84 // ?classname::?member_function |
91 // ?implementation_description |
85 // ?implementation_description |
92 // (other items were commented in a header). |
86 // (other items were commented in a header). |
93 // ----------------------------------------------------------------------------- |
87 // ----------------------------------------------------------------------------- |
94 // |
88 // |
95 void CalenMonthData::SetHasEvents(bool hasEvents) |
89 void TCalenMonthData::SetHasEvents(TBool aHasEvents) |
96 { |
90 { |
97 OstTraceFunctionEntry0( CALENMONTHDATA_SETHASEVENTS_ENTRY ); |
91 TRACE_ENTRY_POINT; |
98 |
92 |
99 mHasEvents = hasEvents; |
93 iHasEvents = aHasEvents; |
100 |
94 |
101 OstTraceFunctionExit0( CALENMONTHDATA_SETHASEVENTS_EXIT ); |
95 TRACE_EXIT_POINT; |
102 } |
96 } |
103 |
97 |
104 // ----------------------------------------------------------------------------- |
98 // ----------------------------------------------------------------------------- |
105 // ?classname::HasEvents |
99 // ?classname::?member_function |
106 // ?implementation_description |
100 // ?implementation_description |
107 // (other items were commented in a header). |
101 // (other items were commented in a header). |
108 // ----------------------------------------------------------------------------- |
102 // ----------------------------------------------------------------------------- |
109 // |
103 // |
110 bool CalenMonthData::HasEvents() |
104 TBool TCalenMonthData::HasEvents() |
111 { |
105 { |
112 OstTraceFunctionEntry0( CALENMONTHDATA_HASEVENTS_ENTRY ); |
106 TRACE_ENTRY_POINT; |
113 |
107 |
114 OstTraceFunctionExit0( CALENMONTHDATA_HASEVENTS_EXIT ); |
108 TRACE_EXIT_POINT; |
115 return mHasEvents; |
109 return iHasEvents; |
116 } |
110 } |
117 |
111 |
118 void CalenMonthData::setActive(bool isActive) |
|
119 { |
|
120 OstTraceFunctionEntry0( CALENMONTHDATA_SETACTIVE_ENTRY ); |
|
121 |
|
122 mIsActive = isActive; |
|
123 |
|
124 OstTraceFunctionExit0( CALENMONTHDATA_SETACTIVE_EXIT ); |
|
125 } |
|
126 |
112 |
127 bool CalenMonthData::isActive() |
|
128 { |
|
129 OstTraceFunctionEntry0( CALENMONTHDATA_ISACTIVE_ENTRY ); |
|
130 |
|
131 OstTraceFunctionExit0( CALENMONTHDATA_ISACTIVE_EXIT ); |
|
132 return mIsActive; |
|
133 } |
|
134 // End of File |
113 // End of File |