Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2005-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __CALCOMMON_H__
17 #define __CALCOMMON_H__
21 /** This system-wide #define is for version 2 of the Calendar component.
22 V1 is the CalInterimAPI. V2 is the refactored Calendar component which includes
23 support for Attachments, GEO, TRANSP, instance iterator, extended text searching.
27 #define SYMBIAN_CALENDAR_V2
29 /** Calendar local entry ID.
30 This entry ID is assigned by the calendar server when an entry is created.
31 It will remain unchanged for the lifetime of that entry.
35 typedef TUint32 TCalLocalUid;
41 typedef TInt64 TCalFileId;
43 /** Utility class containing common calendar-related enums.
52 /** Entry filter used in the entry view and instance view, filter flags are defined by TCalViewFilterFlags
56 typedef TUint TCalViewFilter;
58 /** Entry filter flags used in the entry view and instance view.
62 enum TCalViewFilterFlags
64 /** Include appointments. */
66 /** Include reminders. */
67 EIncludeReminder=0x02,
68 /** Include all-day events. */
70 /** Include anniversaries. */
72 /** Include completed todos. */
73 EIncludeCompletedTodos=0x10,
74 /** Include incompleted todos. */
75 EIncludeIncompletedTodos=0x20,
76 /** Remove non-alarmed entries. This flag cannot be used by itself. */
77 EIncludeAlarmedOnly=0x40,
78 /** Include next only instance of a repeat entry. */
79 EIncludeRptsNextInstanceOnly=0x80,
81 /** By default all instances which overlap the time range are found. Use the EInstanceStartTimeWithinRange
82 flag to only include instances whose start time is inside the search time range.
84 Note that setting both the EInstanceStartTimeWithinRange and EInstanceEndTimeWithinRange flags will
85 only include instances which are completely within the search time range. */
86 EInstanceStartTimeWithinRange=0x100,
88 /** By default all instances which overlap the time range are found. Use the EInstanceEndTimeWithinRange
89 flag to only include instances whose end time is inside the search time range.
91 Note that setting both the EInstanceStartTimeWithinRange and EInstanceEndTimeWithinRange flags will
92 only include instances which are completely within the search time range.
94 EInstanceEndTimeWithinRange=0x200,
96 /** By default all instances which adjoin the search range are found. Use the EExcludeInstanceAdjoiningRange
97 flag to exclude instances that are outside, but adjoin the search range.
99 Instances that are outside, but adjoin the search start or end time are excluded.
100 Instances that both start and end on the search start time are included.
101 Instances that both start and end on the search end time are excluded.
103 EExcludeInstanceAdjoiningRange=0x400,
105 /** Include all entries (appointments, day events, reminders, anniversaries and todos). */
106 EIncludeAll=EIncludeAppts|EIncludeReminder|EIncludeEvents|EIncludeAnnivs|
107 EIncludeCompletedTodos|EIncludeIncompletedTodos,
110 /** The range of instances referred to in a recurrence ID or instance view.
114 enum TRecurrenceRange
116 /** Only this instance is referenced.
117 If the user set EThisOnly when a repeating child entry is created and stored to the file, only the parent instance
118 referred to by the child's recurrence ID will be replaced. */
120 /** This and all other instances are referenced. */
122 /** This and all future instances are referenced. */
124 /** This and all previous instances are referenced. */
129 /** Search filter for use in the CCalInstanceView::FindInstanceL() function.
130 Note that a folded text search is used if exact text search is not specified.
131 The summary text field is always searched. It is possible to specify additional text fields to be
136 enum TCalSearchBehaviour
138 /** Search for folded text. */
139 EFoldedTextSearch=0x0,
141 /** Search for the exact text. */
142 EExactTextSearch=0x1,
144 /** Search location during a text search.
148 ESearchEntryLocation=0x2,
150 /** Search description during a text search.
154 ESearchEntryDescription=0x4,
156 /** Search attendee addresses during a text search.
160 ESearchAttendeeAddress=0x8,
162 /** Search attendee sent by addresses during a text search.
166 ESearchAttendeeSentByAddress=0x10,
168 /** Search attendee common names during a text search.
172 ESearchAttendeeCommonName=0x20,
174 /** Search organizer's address during a text search.
178 ESearchOrganizerAddress=0x40,
180 /** Search organizer's sent by address during a text search.
184 ESearchOrganizerSentByAddress=0x80,
186 /** Search organizer's common name during a text search.
190 ESearchOrganizerCommonName=0x100,
192 /** Include all possible text fields during a text search. */
193 ESearchAllTextFields=ESearchEntryLocation|ESearchEntryDescription|
194 ESearchAttendeeAddress|ESearchAttendeeSentByAddress|ESearchAttendeeCommonName|
195 ESearchOrganizerAddress|ESearchOrganizerSentByAddress|ESearchOrganizerCommonName,
198 /** Class to implement a time range in the Instance view and Entry view.
205 IMPORT_C TCalTimeRange(TCalTime aStartTime, TCalTime aEndTime);
207 IMPORT_C TCalTime StartTime() const;
208 IMPORT_C TCalTime EndTime() const;
215 /** Enumeration returned when opening a file to indicate whether the file is the current version,
216 needs converting, or is unsupported.
220 enum TCalFileVersionSupport
222 /** The file is the current version and can be loaded immediately. */
223 EFileIsCurrentVersion,
224 /** The file is an older version and will be converted when it is used. */
225 EFileNeedsConverting,
226 /** The file is an old version that is not supported. */
227 EUnsupportedFileVersion
230 #endif // __CALCOMMON_H__