mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-06 23:51:23 +00:00
Monotone-Parent: 253b771ca0aa9bed24427795dd91889aef6f61b4
Monotone-Revision: 22be47412187379c5790339050a32efb324de72f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-12-01T22:20:22 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -34,8 +34,10 @@
|
||||
#import <SOGo/SOGoPermissions.h>
|
||||
#import <SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoUserDefaults.h>
|
||||
#import <Appointments/iCalEntityObject+SOGo.h>
|
||||
#import <Appointments/SOGoTaskObject.h>
|
||||
|
||||
#import "MAPIStoreContext.h"
|
||||
#import "MAPIStoreTasksFolder.h"
|
||||
#import "MAPIStoreTypes.h"
|
||||
#import "NSDate+MAPIStore.h"
|
||||
@@ -90,7 +92,7 @@
|
||||
{
|
||||
iCalToDo *task;
|
||||
|
||||
task = [sogoObject component: NO secure: NO];
|
||||
task = [sogoObject component: NO secure: YES];
|
||||
*data = [[task summary] asUnicodeInMemCtx: memCtx];
|
||||
|
||||
return MAPISTORE_SUCCESS;
|
||||
@@ -102,7 +104,7 @@
|
||||
uint32_t v;
|
||||
iCalToDo *task;
|
||||
|
||||
task = [sogoObject component: NO secure: NO];
|
||||
task = [sogoObject component: NO secure: YES];
|
||||
if ([[task priority] isEqualToString: @"9"])
|
||||
v = 0x0;
|
||||
else if ([[task priority] isEqualToString: @"1"])
|
||||
@@ -120,7 +122,7 @@
|
||||
{
|
||||
iCalToDo *task;
|
||||
|
||||
task = [sogoObject component: NO secure: NO];
|
||||
task = [sogoObject component: NO secure: YES];
|
||||
*data = MAPIBoolValue (memCtx,
|
||||
[[task status] isEqualToString: @"COMPLETED"]);
|
||||
|
||||
@@ -133,7 +135,7 @@
|
||||
double doubleValue;
|
||||
iCalToDo *task;
|
||||
|
||||
task = [sogoObject component: NO secure: NO];
|
||||
task = [sogoObject component: NO secure: YES];
|
||||
|
||||
doubleValue = ((double) [[task percentComplete] intValue] / 100);
|
||||
*data = MAPIDoubleValue (memCtx, doubleValue);
|
||||
@@ -148,7 +150,7 @@
|
||||
NSCalendarDate *dateValue;
|
||||
iCalToDo *task;
|
||||
|
||||
task = [sogoObject component: NO secure: NO];
|
||||
task = [sogoObject component: NO secure: YES];
|
||||
|
||||
dateValue = [task completed];
|
||||
if (dateValue)
|
||||
@@ -210,7 +212,7 @@
|
||||
NSCalendarDate *dateValue;
|
||||
iCalToDo *task;
|
||||
|
||||
task = [sogoObject component: NO secure: NO];
|
||||
task = [sogoObject component: NO secure: YES];
|
||||
dateValue = [task due];
|
||||
if (dateValue)
|
||||
*data = [dateValue asFileTimeInMemCtx: memCtx];
|
||||
@@ -227,7 +229,7 @@
|
||||
NSCalendarDate *dateValue;
|
||||
iCalToDo *task;
|
||||
|
||||
task = [sogoObject component: NO secure: NO];
|
||||
task = [sogoObject component: NO secure: YES];
|
||||
dateValue = [task startDate];
|
||||
if (dateValue)
|
||||
*data = [dateValue asFileTimeInMemCtx: memCtx];
|
||||
@@ -263,7 +265,7 @@
|
||||
uint32_t longValue;
|
||||
iCalToDo *task;
|
||||
|
||||
task = [sogoObject component: NO secure: NO];
|
||||
task = [sogoObject component: NO secure: YES];
|
||||
status = [task status];
|
||||
if (![status length]
|
||||
|| [status isEqualToString: @"NEEDS-ACTION"])
|
||||
|
||||
Reference in New Issue
Block a user