1 /* |
1 /* |
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
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: For data of MonthView by one day. |
14 * Description: CalenEventLabel class definition. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #ifndef CALENMONTHDATA_H |
19 #ifndef CALENMONTHDATA_H |
20 #define CALENMONTHDATA_H |
20 #define CALENMONTHDATA_H |
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <e32std.h> |
23 #include <e32std.h> |
24 #include <e32base.h> |
24 #include <e32base.h> |
25 |
25 #include <QDateTime> |
26 // FORWARD DECLARATIONS |
|
27 class TCalenMonthData; |
|
28 |
|
29 // DATA TYPES |
|
30 typedef CArrayFixFlat<TCalenMonthData> CMonthDataArray; |
|
31 |
26 |
32 // CLASS DEFINITIONS |
27 // CLASS DEFINITIONS |
33 /** |
28 /** |
34 * For data of month view |
29 * For data of month view |
35 */ |
30 */ |
36 NONSHARABLE_CLASS( TCalenMonthData ) |
31 NONSHARABLE_CLASS( CalenMonthData ) |
37 { |
32 { |
38 public : // Constructors and destructor |
33 public : // Constructors and destructor |
39 /** |
34 /** |
40 * C++ default constructor. |
35 * C++ default constructor. |
41 */ |
36 */ |
42 TCalenMonthData(); |
37 CalenMonthData(); |
43 |
38 |
44 /** |
39 /** |
45 * C++ constructor. |
40 * C++ constructor. |
46 */ |
41 */ |
47 TCalenMonthData(TTime aDay); |
42 CalenMonthData(QDateTime day); |
48 |
43 |
49 /** |
44 /** |
50 * Destructor. |
45 * Destructor. |
51 */ |
46 */ |
52 virtual ~TCalenMonthData(); |
47 virtual ~CalenMonthData(); |
53 |
48 |
54 public : // New funcitons |
49 public : // New funcitons |
55 /** |
50 /** |
56 * return day |
51 * return day |
57 * @return day |
52 * @return day |
58 */ |
53 */ |
59 TTime Day(); |
54 QDateTime Day(); |
60 |
55 |
61 void SetHasEvents(TBool aHasEvents); |
56 /** |
62 TBool HasEvents(); |
57 * |
|
58 */ |
|
59 void SetHasEvents(bool HasEvents); |
|
60 |
|
61 /** |
|
62 * |
|
63 */ |
|
64 bool HasEvents(); |
|
65 |
|
66 void setActive(bool isActive); |
|
67 |
|
68 bool isActive(); |
63 |
69 |
64 private : // New data |
70 private : // New data |
65 TTime iDay; |
71 /** |
66 TBool iHasEvents; |
72 * |
|
73 */ |
|
74 QDateTime mDay; |
|
75 |
|
76 /** |
|
77 * |
|
78 */ |
|
79 bool mHasEvents; |
|
80 |
|
81 bool mIsActive; |
67 }; |
82 }; |
68 |
83 |
69 #endif // CALENMONTHDATA_H |
84 #endif // CALENMONTHDATA_H |
70 |
85 |
71 |
86 |