|
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 |
|
19 #ifndef C_AICALENDARPLUGIN2CONSTANTDATA_H |
|
20 #define C_AICALENDARPLUGIN2CONSTANTDATA_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <aipropertyextension.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MAiContentItemIterator; |
|
28 |
|
29 /** |
|
30 * Constant data container. |
|
31 * Active Idle Calendar plug-in 2 constant data container. |
|
32 * |
|
33 * @lib aicalendarplugin2 |
|
34 * @since S60 3.2 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CAICalendarPlugin2ConstantData ) : public CBase |
|
37 { |
|
38 public: |
|
39 |
|
40 // Construction |
|
41 |
|
42 static CAICalendarPlugin2ConstantData* NewL(); |
|
43 |
|
44 virtual ~CAICalendarPlugin2ConstantData(); |
|
45 |
|
46 // New methods |
|
47 |
|
48 const TDesC& TimeFormatUsual(); |
|
49 |
|
50 const TDesC& DateFormatWithoutYearWithZero(); |
|
51 |
|
52 const TDesC& MakeEventOnL( const TTime& aTime ); |
|
53 |
|
54 TAny* GetPropertyL( TInt aProperty ); |
|
55 |
|
56 void SetPropertyL( TInt aProperty, TAny* aValue ); |
|
57 |
|
58 /** |
|
59 * Tell if we need to append end time to "not today timed" events. |
|
60 */ |
|
61 TBool iAppendEndTimeToOngoingItems; |
|
62 |
|
63 /** |
|
64 * Tell if we need to use alternate publish for upcoming and ongoing items. |
|
65 */ |
|
66 TBool iUseAlternatePublish; |
|
67 |
|
68 /** |
|
69 * Open event in viewer. |
|
70 */ |
|
71 TBool iOpenInViewer; |
|
72 |
|
73 /** |
|
74 * Amount of days that we handle as not today categorized. |
|
75 * 1 means tomorrow only etc. 1 - 7. |
|
76 */ |
|
77 TInt iDaysToHandleAsNotToday; |
|
78 |
|
79 /** |
|
80 * Open first valid entry on index zero. |
|
81 */ |
|
82 TBool iOpenFirstValid; |
|
83 |
|
84 /** |
|
85 * Publish status text and icon with alternate id. |
|
86 */ |
|
87 TBool iUseAlternateInfoPublish; |
|
88 private: |
|
89 |
|
90 // Construction |
|
91 |
|
92 CAICalendarPlugin2ConstantData(); |
|
93 |
|
94 void ConstructL(); |
|
95 |
|
96 private: // Data members |
|
97 |
|
98 /** |
|
99 * Usual time format string (examples: "15:45" or "10:20 AM"). |
|
100 * Own. |
|
101 */ |
|
102 HBufC* iTimeFormatUsual; |
|
103 |
|
104 /** |
|
105 * Short date format string ("15/2/06"). |
|
106 * Own. |
|
107 */ |
|
108 HBufC* iDateFormatShortWithZero; |
|
109 |
|
110 /** |
|
111 * Short date format string ("05/02"). |
|
112 * Own. |
|
113 */ |
|
114 HBufC* iDateFormatWithoutYearWithZero; |
|
115 |
|
116 /** |
|
117 * This plugins publisher info. |
|
118 * Own. |
|
119 */ |
|
120 TAiPublisherInfo iInfo; |
|
121 |
|
122 /** |
|
123 * Plugin content iterator. |
|
124 * Own. |
|
125 */ |
|
126 MAiContentItemIterator* iContent; |
|
127 |
|
128 /** |
|
129 * Resource content iterator. |
|
130 * Own. |
|
131 */ |
|
132 MAiContentItemIterator* iResources; |
|
133 |
|
134 /** |
|
135 * Event content iterator. |
|
136 * Own. |
|
137 */ |
|
138 MAiContentItemIterator* iEvents; |
|
139 |
|
140 /** |
|
141 * String for "Next event on [day] [date]" |
|
142 * Own. |
|
143 */ |
|
144 HBufC* iNextEventOnCombined; |
|
145 |
|
146 }; |
|
147 |
|
148 #endif // C_AICALENDARPLUGIN2CONSTANTDATA_H |
|
149 |
|
150 |
|
151 // End of File |