equal
deleted
inserted
replaced
25 #include "pimexternalchanges.h" |
25 #include "pimexternalchanges.h" |
26 |
26 |
27 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
28 class MPIMEventItem; |
28 class MPIMEventItem; |
29 class CPIMAgnEventAdapter; |
29 class CPIMAgnEventAdapter; |
|
30 class CCalSession; |
30 |
31 |
31 // CLASS DECLARATION |
32 // CLASS DECLARATION |
32 |
33 |
33 /** |
34 /** |
34 * PIM Event List Adapter class |
35 * PIM Event List Adapter class |
45 * Two-phased constructor. |
46 * Two-phased constructor. |
46 */ |
47 */ |
47 static CPIMEventListAdapter* NewL( |
48 static CPIMEventListAdapter* NewL( |
48 CCalEntry::TType aEntryType, |
49 CCalEntry::TType aEntryType, |
49 CPIMAgnEventAdapter* aEventAdapter, |
50 CPIMAgnEventAdapter* aEventAdapter, |
50 java::util::FunctionServer* aFuncServer); |
51 java::util::FunctionServer* aFuncServer, |
|
52 CCalSession *aCalSession); |
51 |
53 |
52 /** |
54 /** |
53 * Destructor. |
55 * Destructor. |
54 */ |
56 */ |
55 virtual ~CPIMEventListAdapter(); |
57 virtual ~CPIMEventListAdapter(); |
135 * The method leaves on error. Such error always means that the list |
137 * The method leaves on error. Such error always means that the list |
136 * adapter is non-functional. |
138 * adapter is non-functional. |
137 */ |
139 */ |
138 void CreateEventItemL(MPIMEventItem& aEventItem); |
140 void CreateEventItemL(MPIMEventItem& aEventItem); |
139 |
141 |
140 void CPIMEventListAdapter::DoCreateEventItemL( |
142 void DoCreateEventItemL(MPIMEventItem& aEventItem); |
141 MPIMEventItem& aEventItem); |
|
142 |
143 |
143 /** |
144 /** |
144 * Reads an existing event item from the Agenda File. |
145 * Reads an existing event item from the Agenda File. |
145 * The adapter maps the Item ID in \a aEventItem to a native Agenda Model |
146 * The adapter maps the Item ID in \a aEventItem to a native Agenda Model |
146 * entry identifier, reads the entry and sets the data of |
147 * entry identifier, reads the entry and sets the data of |
161 * native Agenda File. |
162 * native Agenda File. |
162 * @li Other - The list adapter is non-functional. |
163 * @li Other - The list adapter is non-functional. |
163 */ |
164 */ |
164 void ReadEventItemL(MPIMEventItem& aEventItem); |
165 void ReadEventItemL(MPIMEventItem& aEventItem); |
165 |
166 |
166 void CPIMEventListAdapter::DoReadEventItemL( |
167 void DoReadEventItemL(MPIMEventItem& aEventItem); |
167 MPIMEventItem& aEventItem); |
|
168 |
168 |
169 /** |
169 /** |
170 * Writes an existing event item to the native Agenda File. |
170 * Writes an existing event item to the native Agenda File. |
171 * The adapter maps the Item ID in \a aEventItem to a native Agenda Model |
171 * The adapter maps the Item ID in \a aEventItem to a native Agenda Model |
172 * entry identifier, reads the entry and sets the data of the entry |
172 * entry identifier, reads the entry and sets the data of the entry |
188 * client. The operation may succeed later. |
188 * client. The operation may succeed later. |
189 * @li Other - The list adapter is non-functional. |
189 * @li Other - The list adapter is non-functional. |
190 */ |
190 */ |
191 void WriteEventItemL(MPIMEventItem& aEventItem); |
191 void WriteEventItemL(MPIMEventItem& aEventItem); |
192 |
192 |
193 void CPIMEventListAdapter::DoWriteEventItemL( |
193 void DoWriteEventItemL(MPIMEventItem& aEventItem); |
194 MPIMEventItem& aEventItem); |
|
195 |
194 |
196 /** |
195 /** |
197 * Removes an existing event from the native Agenda File. |
196 * Removes an existing event from the native Agenda File. |
198 * The adapter maps \a aItemID to a native Agenda Model entry and removes |
197 * The adapter maps \a aItemID to a native Agenda Model entry and removes |
199 * it. |
198 * it. |
209 * client. The operation may succeed later. |
208 * client. The operation may succeed later. |
210 * @li Other - The list adapter is non-functional. |
209 * @li Other - The list adapter is non-functional. |
211 */ |
210 */ |
212 void RemoveEventItemL(TPIMItemID aItemID); |
211 void RemoveEventItemL(TPIMItemID aItemID); |
213 |
212 |
214 void CPIMEventListAdapter::DoRemoveEventItemL( |
213 void DoRemoveEventItemL(TPIMItemID aItemID); |
215 TPIMItemID aItemID); |
|
216 |
214 |
217 protected: |
215 protected: |
218 |
216 |
219 /** |
217 /** |
220 * C++ default constructor. |
218 * C++ default constructor. |
224 /** |
222 /** |
225 * By default Symbian 2nd phase constructor is private. |
223 * By default Symbian 2nd phase constructor is private. |
226 */ |
224 */ |
227 void ConstructL( |
225 void ConstructL( |
228 CCalEntry::TType aEntryType, |
226 CCalEntry::TType aEntryType, |
229 CPIMAgnEventAdapter* aEventAdapter); |
227 |
|
228 CPIMAgnEventAdapter* aEventAdapter, |
|
229 TInt aCalSessionInt); |
230 |
230 |
231 private: // Member data |
231 private: // Member data |
232 |
232 |
233 CPIMAgnEventAdapter* iAgnAdapter; |
233 CPIMAgnEventAdapter* iAgnAdapter; |
234 CDesCArrayFlat* iEventCategoryArray; |
234 CDesCArrayFlat* iEventCategoryArray; |