equal
deleted
inserted
replaced
42 public: // Constructor and destructor |
42 public: // Constructor and destructor |
43 |
43 |
44 /** |
44 /** |
45 * Two-phased constructor. |
45 * Two-phased constructor. |
46 */ |
46 */ |
47 static CPIMToDoListAdapter* NewL(java::util::FunctionServer* aFuncServer, |
47 static CPIMToDoListAdapter* NewL(java::util::FunctionServer* aFuncServer); |
48 CCalSession *aCalSession); |
|
49 |
48 |
50 /** |
49 /** |
51 * Destructor. |
50 * Destructor. |
52 */ |
51 */ |
53 ~CPIMToDoListAdapter(); |
52 ~CPIMToDoListAdapter(); |
133 * The method leaves on error. Such error always means that the list |
132 * The method leaves on error. Such error always means that the list |
134 * adapter is non-functional. |
133 * adapter is non-functional. |
135 */ |
134 */ |
136 void CreateToDoItemL(MPIMToDoItem& aToDoItem); |
135 void CreateToDoItemL(MPIMToDoItem& aToDoItem); |
137 |
136 |
138 void CPIMToDoListAdapter::DoCreateToDoItemL( |
137 void DoCreateToDoItemL(MPIMToDoItem& aToDoItem); |
139 MPIMToDoItem& aToDoItem); |
|
140 |
138 |
141 /** |
139 /** |
142 * Reads an existing To-Do item from the Agenda File. |
140 * Reads an existing To-Do item from the Agenda File. |
143 * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model |
141 * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model |
144 * entry identifier, reads the entry and sets the data of |
142 * entry identifier, reads the entry and sets the data of |
159 * native Agenda File. |
157 * native Agenda File. |
160 * @li Other - The list adapter is non-functional. |
158 * @li Other - The list adapter is non-functional. |
161 */ |
159 */ |
162 void ReadToDoItemL(MPIMToDoItem& aToDoItem); |
160 void ReadToDoItemL(MPIMToDoItem& aToDoItem); |
163 |
161 |
164 void CPIMToDoListAdapter::DoReadToDoItemL( |
162 void DoReadToDoItemL(MPIMToDoItem& aToDoItem); |
165 MPIMToDoItem& aToDoItem); |
|
166 |
163 |
167 /** |
164 /** |
168 * Writes an existing To-Do item to the native Agenda File. |
165 * Writes an existing To-Do item to the native Agenda File. |
169 * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model |
166 * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model |
170 * entry identifier, reads the entry and sets the data of the entry |
167 * entry identifier, reads the entry and sets the data of the entry |
186 * client. The operation may succeed later. |
183 * client. The operation may succeed later. |
187 * @li Other - The list adapter is non-functional. |
184 * @li Other - The list adapter is non-functional. |
188 */ |
185 */ |
189 void WriteToDoItemL(MPIMToDoItem& aToDoItem); |
186 void WriteToDoItemL(MPIMToDoItem& aToDoItem); |
190 |
187 |
191 void CPIMToDoListAdapter::DoWriteToDoItemL( |
188 void DoWriteToDoItemL(MPIMToDoItem& aToDoItem); |
192 MPIMToDoItem& aToDoItem); |
|
193 |
189 |
194 /** |
190 /** |
195 * Removes an existing To-Do from the native Agenda File. |
191 * Removes an existing To-Do from the native Agenda File. |
196 * The adapter maps \a aItemID to a native Agenda Model entry and removes |
192 * The adapter maps \a aItemID to a native Agenda Model entry and removes |
197 * it. |
193 * it. |
207 * client. The operation may succeed later. |
203 * client. The operation may succeed later. |
208 * @li Other - The list adapter is non-functional. |
204 * @li Other - The list adapter is non-functional. |
209 */ |
205 */ |
210 void RemoveToDoItemL(TPIMItemID aItemID); |
206 void RemoveToDoItemL(TPIMItemID aItemID); |
211 |
207 |
212 void CPIMToDoListAdapter::DoRemoveToDoItemL( |
208 void DoRemoveToDoItemL(TPIMItemID aItemID); |
213 TPIMItemID aItemID); |
|
214 |
209 |
215 protected: |
210 protected: |
216 |
211 |
217 /** |
212 /** |
218 * C++ default constructor. |
213 * C++ default constructor. |
220 CPIMToDoListAdapter(java::util::FunctionServer* aFuncServer); |
215 CPIMToDoListAdapter(java::util::FunctionServer* aFuncServer); |
221 |
216 |
222 /** |
217 /** |
223 * By default Symbian 2nd phase constructor is private. |
218 * By default Symbian 2nd phase constructor is private. |
224 */ |
219 */ |
225 void ConstructL(TInt aCalSessionInt); |
220 void ConstructL(); |
226 |
221 |
227 private: // Member data |
222 private: // Member data |
228 |
223 |
229 CDesCArrayFlat* iToDoCategoryArray; |
224 CDesCArrayFlat* iToDoCategoryArray; |
230 CPIMAgnToDoAdapter* iAgnToDoAdapter; |
225 CPIMAgnToDoAdapter* iAgnToDoAdapter; |