Monotone-Parent: 7605704028eff50386f4f9c1e4e93aa47eea31c3
Monotone-Revision: ae08767667624a609d7996a164800377cb574081

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-09-17T10:06:18
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2012-09-17 10:06:18 +00:00
parent ec2e71090e
commit fc65172756
3 changed files with 42 additions and 1 deletions

View File

@@ -102,6 +102,7 @@
return MAPISTORE_SUCCESS;
}
/* FIXME: Should be combined somehow with the code in MAPIStoreAppointmentWrapper.m */
- (int) getPidTagBody: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
@@ -120,6 +121,20 @@
return rc;
}
/* FIXME: Should be combined somehow with the code in MAPIStoreAppointmentWrapper.m */
- (int) getPidLidPrivate: (void **) data // private (bool), should depend on CLASS and permissions
inMemCtx: (TALLOC_CTX *) memCtx
{
iCalToDo *task;
task = [sogoObject component: NO secure: YES];
if ([task symbolicAccessClass] == iCalAccessPublic)
return [self getNo: data inMemCtx: memCtx];
return [self getYes: data inMemCtx: memCtx];
}
- (int) getPidTagImportance: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
@@ -479,6 +494,18 @@
[NSString stringWithFormat: @"%d", (int) (doubleValue * 100)]];
}
/* privacy */
/* FIXME: this should be combined with the code found in iCalEvent+MAPIStore.m */
value = [properties objectForKey: MAPIPropertyKey(PidLidPrivate)];
if (value)
{
if ([value boolValue])
[vToDo setAccessClass: @"PRIVATE"];
else
[vToDo setAccessClass: @"PUBLIC"];
}
now = [NSCalendarDate date];
if ([sogoObject isNew])
{