|
1 /* |
|
2 * Copyright (c) 2009 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: Header file for utilities and private implementaions |
|
15 * used by AgendaEntry. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef AGENDAENTRY_P_H |
|
20 #define AGENDAENTRY_P_H |
|
21 |
|
22 // System includes |
|
23 #include <QTime> |
|
24 |
|
25 // User includes |
|
26 #include <agendaentry.h> |
|
27 |
|
28 class AgendaAttendeePrivate |
|
29 { |
|
30 public: |
|
31 AgendaAttendeePrivate(); |
|
32 |
|
33 public: |
|
34 QAtomicInt ref; |
|
35 |
|
36 private: |
|
37 friend class AgendaAttendee; |
|
38 QString m_address; |
|
39 AgendaAttendee::ParticipantRole m_role; |
|
40 AgendaAttendee::StatusType m_status; |
|
41 QString m_commonName; |
|
42 |
|
43 bool m_responseRequested; |
|
44 }; |
|
45 |
|
46 class AgendaCategoryPrivate |
|
47 { |
|
48 public: |
|
49 AgendaCategoryPrivate(); |
|
50 |
|
51 public: |
|
52 QAtomicInt ref; |
|
53 |
|
54 private: |
|
55 friend class AgendaCategory; |
|
56 AgendaCategory::CategoryType m_categoryType; |
|
57 QString m_extendedCategory; |
|
58 }; |
|
59 |
|
60 class AgendaAlarmPrivate |
|
61 { |
|
62 public: |
|
63 AgendaAlarmPrivate(); |
|
64 |
|
65 public: |
|
66 QAtomicInt ref; |
|
67 |
|
68 private: |
|
69 friend class AgendaAlarm; |
|
70 QString m_soundName; |
|
71 int m_timeOffset; |
|
72 }; |
|
73 |
|
74 class AgendaGeoValuePrivate |
|
75 { |
|
76 public: |
|
77 AgendaGeoValuePrivate(); |
|
78 |
|
79 public: |
|
80 QAtomicInt ref; |
|
81 |
|
82 private: |
|
83 friend class AgendaGeoValue; |
|
84 double mLatitude; |
|
85 double mLongitude; |
|
86 }; |
|
87 |
|
88 class AgendaRepeatRulePrivate |
|
89 { |
|
90 public: |
|
91 AgendaRepeatRulePrivate(); |
|
92 |
|
93 public: |
|
94 QAtomicInt ref; |
|
95 |
|
96 private: |
|
97 friend class AgendaRepeatRule; |
|
98 AgendaRepeatRule::RuleType m_repeatRuleType; |
|
99 QList<AgendaRepeatRule::Day> m_days; |
|
100 QList<AgendaRepeatRule::Month> m_months; |
|
101 QList<int> m_monthDays; |
|
102 AgendaRepeatRule::Day m_weekStartDay; |
|
103 QDateTime m_startDate; |
|
104 QDateTime m_untilDate; |
|
105 int m_interval; |
|
106 }; |
|
107 |
|
108 class AgendaEntryPrivate |
|
109 { |
|
110 public: |
|
111 AgendaEntryPrivate(); |
|
112 void addCategory(const AgendaCategory& category); |
|
113 bool deleteCategory(const AgendaCategory& category); |
|
114 void addAttendee(const AgendaAttendee& attendee); |
|
115 bool deleteAttendee(const AgendaAttendee& attendee); |
|
116 void setToDoCompleted(bool complete, QDateTime& dateTime); |
|
117 |
|
118 public: |
|
119 QAtomicInt ref; |
|
120 |
|
121 private: |
|
122 friend class AgendaEntry; |
|
123 friend class AgendaUtilPrivate; |
|
124 |
|
125 QList<AgendaAttendee> m_attendees; |
|
126 QList<AgendaCategory> m_categories; |
|
127 |
|
128 QDateTime m_startTime; |
|
129 QDateTime m_endTime; |
|
130 |
|
131 QString m_summaryText; |
|
132 QString m_description; |
|
133 QString m_location; |
|
134 |
|
135 ulong m_id; |
|
136 int m_priority; |
|
137 int m_favourite; |
|
138 |
|
139 AgendaEntry::Type m_entryType; |
|
140 AgendaEntry::Method m_method; |
|
141 AgendaEntry::Status m_entryStatus; |
|
142 |
|
143 AgendaAlarm m_alarm; |
|
144 AgendaGeoValue m_geoValue; |
|
145 AgendaRepeatRule m_repeatRule; |
|
146 |
|
147 QList<QDate> m_rDates; |
|
148 QDateTime m_recurrenceId; |
|
149 QDateTime m_lastModTime; |
|
150 QDateTime m_completedDateTime; |
|
151 QDateTime m_dtStamp; |
|
152 }; |
|
153 |
|
154 #endif // AGENDAENTRY_P_H |
|
155 |
|
156 // End of file --Don't remove this. |