From e87e1ab083bc43a18a01c8f1e0dfa2ab82ee605a Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 12 Sep 2012 10:16:20 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: 05dfd85bdc0651db027e7df47810671a4f906fad Monotone-Revision: 0be42fb4ac553a3b8b6b1d18144d2c4aa9dfdd0e Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2012-09-12T10:16:20 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ OpenChange/MAPIStoreTasksMessage.m | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/ChangeLog b/ChangeLog index 59ee2278f..e54040f76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-09-12 Ludovic Marcotte + + * OpenChange/MAPIStoreTasksMessage.m: added a way to get + the PidTagBody of a task. This could be generalized eventually + with the code in MAPIStoreAppointmentWrapper. + 2012-09-07 Francis Lachapelle * UI/WebServerResources/SchedulerUI.js (tasksListCallback): list diff --git a/OpenChange/MAPIStoreTasksMessage.m b/OpenChange/MAPIStoreTasksMessage.m index 93d73cfd6..1487e6382 100644 --- a/OpenChange/MAPIStoreTasksMessage.m +++ b/OpenChange/MAPIStoreTasksMessage.m @@ -102,6 +102,24 @@ return MAPISTORE_SUCCESS; } +- (int) getPidTagBody: (void **) data + inMemCtx: (TALLOC_CTX *) memCtx +{ + int rc = MAPISTORE_SUCCESS; + NSString *stringValue; + iCalToDo *task; + + /* FIXME: there is a confusion in NGCards around "comment" and "description" */ + task = [sogoObject component: NO secure: YES]; + stringValue = [task comment]; + if ([stringValue length] > 0) + *data = [stringValue asUnicodeInMemCtx: memCtx]; + else + *data = [@"" asUnicodeInMemCtx: memCtx]; + + return rc; +} + - (int) getPidTagImportance: (void **) data inMemCtx: (TALLOC_CTX *) memCtx {