|
1 /* |
|
2 * Copyright (c) 2005-2006 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef AICALENDARPLUGIN2CONSTANTS_HRH |
|
19 #define AICALENDARPLUGIN2CONSTANTS_HRH |
|
20 |
|
21 #include <uikon.hrh> |
|
22 #include <data_caging_path_literals.hrh> |
|
23 |
|
24 /** |
|
25 * Remapped calendar entry types. These have additional typing according to |
|
26 * to starting and ending times. Actual CAgnEntry::TType's are mapped to these. |
|
27 * And only these are used in the code. |
|
28 */ |
|
29 enum TAICal2PluginItemType |
|
30 { |
|
31 EPluginItemNoEvents = 0, // Used for plugin specific lines: such as title and |
|
32 // "No more Calendar events for today" etc |
|
33 EPluginItemToDo, // CAgnEntry::TType::ETodo |
|
34 EPluginItemMeeting, // CAgnEntry::TType::EAppt: Meeting starting within 2 hrs. |
|
35 EPluginItemDayNote, // CAgnEntry::TType::EEvent |
|
36 EPluginItemAnniv, // CAgnEntry::TType::EEAnniv |
|
37 /* EPluginItemNotToday, // CAgnEntry::TType::EAppt: Meeting which has starting |
|
38 // time tomorrow or later. |
|
39 EPluginItemNotTodayNonTimed, // CAgnEntry::TType::EEvent, EAnniv, ETodo*/ |
|
40 EPluginItemUpcomingMeeting, // CAgnEntry::TType::EAppt: Timed event whose start time is more that |
|
41 // 2hrs away. |
|
42 EPluginItemOnGoingEvent, // CAgnEntry::TType::EAppt: Timed event whose start time is less than |
|
43 // 30 mins ago and end time not passed yet. |
|
44 EPluginItemOlderOnGoingEvent, // CAgnEntry::TType::EAppt: Timed event whose start time is passed more |
|
45 // than 30 min and ending time > current time. |
|
46 EPluginItemExpired, // Expired events are skipped. |
|
47 // End time > current time |
|
48 }; |
|
49 |
|
50 /** |
|
51 * Calendar settings we expect to receive from framework. |
|
52 * See comments in receiving method void CAICalendarPlugin2::ConfigureL |
|
53 */ |
|
54 enum TAICal2PluginSettings |
|
55 { |
|
56 EPluginEventItemCount = 1, |
|
57 EPluginTimedEventLineCount, |
|
58 EPluginNonTimedEventLineCount, |
|
59 EPluginNonTimedReservedItems, |
|
60 EPluginAppendEndTimeToOngoingItems, |
|
61 EPluginUseAlternatePublishForUpcomingAndOngoingItems, |
|
62 EPluginOpenInViewerOrEditor, |
|
63 EPluginDaysToHandleAsNotToday, |
|
64 EPluginOpenFirstValidOnIndexZero, |
|
65 EPluginPublishInfoWithAlternateId |
|
66 }; |
|
67 |
|
68 // Default actual calendar item count |
|
69 const TInt KAICal2DefaultActualLines = 3; |
|
70 // Default nontimed item reservation |
|
71 const TInt KAICal2DefaultItemReservation = 2; |
|
72 |
|
73 _LIT ( KAICal2SpaceChar, " " ); |
|
74 const TInt KAICal2LenSpaceChar( 1 ); |
|
75 _LIT ( KAICal2HyphenChar, "-" ); |
|
76 |
|
77 #define KAICal2SizeTimeFormatUsual 27 // typical: 12:34 AM[hyphen]12:56 PM (+some extra space) |
|
78 // worst : 12:00 AM - 24/05 11:00 PM (+some extra space) |
|
79 #define KAICal2SizeDateShort 15 // 31.12.04 (+some extra space) |
|
80 |
|
81 #define KAICal2SizeDayShort 15 // monday / tuesday etc (+some extra space) |
|
82 |
|
83 const TUid KCalendarAppUID = { 0x10005901 }; |
|
84 |
|
85 #define KAICal2MaxItemSize 2 // max. lines/item |
|
86 |
|
87 const TInt KAIRangeTomorrowOnly = 1; |
|
88 |
|
89 const TInt KAICal2DefaultBufferLen = 35; |
|
90 |
|
91 _LIT( KAICal2WesternSummaryLocationSeparator, ", " ); |
|
92 _LIT( KAICal2ArabicSummaryLocationSeparator, " \x060c" ); |
|
93 /** |
|
94 * KReplaceWhitespaceChars contains some characters that should be replaced by space |
|
95 * in Calendar popup, day view etc. |
|
96 * Following characters are replaced with space |
|
97 * \x0009 horizontal tab |
|
98 * \x000a new line |
|
99 * \x000b line tabulation (vertical |
|
100 * \x000c form feed |
|
101 * \x000d carriage return |
|
102 * \x2028 line separator |
|
103 * \x2029 paragraph separator |
|
104 */ |
|
105 _LIT( KAICal2ReplaceWhitespaceChars, |
|
106 "\x0009\x000A\x000B\x000C\x000D\x2028\x2029" ); |
|
107 |
|
108 _LIT16( KAICal2CmdTODAY, "TODAY" ); // Calendar command parameter |
|
109 _LIT16( KAICal2CmdDAY, "DAY " ); // Calendar command parameter |
|
110 _LIT16( KAICal2CmdDATE, "DATE " ); // Calendar command parameter |
|
111 _LIT16( KAICal2CmdLUID, "LUID " ); // Calendar command parameter |
|
112 _LIT16( KAICal2CmdLUIDViewer, "LUIDVIEWER " ); // Calendar command parameter |
|
113 _LIT( KAICal2CmdTimeFormat, "%F%Y %M %D %H %T %S %C" ); // "YYYY MM DD HH MM SS MMMMMM" - 26 |
|
114 |
|
115 #endif // AICALENDARPLUGIN2CONSTANTS_HRH |
|
116 |
|
117 |
|
118 // End of File |