From 221e49a5d1f585f33415b2ba53bc806b5a20e3f2 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 10 Feb 2015 21:15:56 -0500 Subject: [PATCH] Improve [iCalTrigger asDictionary] --- SOPE/NGCards/iCalTrigger.m | 3 ++- SoObjects/Appointments/iCalEntityObject+SOGo.h | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SOPE/NGCards/iCalTrigger.m b/SOPE/NGCards/iCalTrigger.m index 1f0bbf995..9723330f3 100644 --- a/SOPE/NGCards/iCalTrigger.m +++ b/SOPE/NGCards/iCalTrigger.m @@ -22,6 +22,7 @@ #import #import #import +#import #import "iCalEvent.h" #import "iCalTrigger.h" @@ -114,7 +115,7 @@ data = [NSDictionary dictionaryWithObjectsAndKeys: relation, @"relation", reference, @"reference", - quantity, @"quantity", + [NSNumber numberWithInt: [quantity intValue]], @"quantity", unit, @"unit", nil]; } diff --git a/SoObjects/Appointments/iCalEntityObject+SOGo.h b/SoObjects/Appointments/iCalEntityObject+SOGo.h index 9ea2348cf..cac24a66c 100644 --- a/SoObjects/Appointments/iCalEntityObject+SOGo.h +++ b/SoObjects/Appointments/iCalEntityObject+SOGo.h @@ -1,6 +1,6 @@ /* iCalEntityObject+SOGo.h - this file is part of SOGo * - * Copyright (C) 2007-2014 Inverse inc. + * Copyright (C) 2007-2015 Inverse inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,6 +26,7 @@ @class iCalAlarm; @class NSMutableDictionary; @class SOGoUser; +@class WOContext; extern NSCalendarDate *iCalDistantFuture; extern NSNumber *iCalDistantFutureNumber; @@ -35,6 +36,8 @@ extern NSNumber *iCalDistantFutureNumber; + (void) initializeSOGoExtensions; - (NSDictionary *) attributes; +- (void) setAttributes: (NSDictionary *) data + inContext: (WOContext *) context; - (BOOL) userIsAttendee: (SOGoUser *) user; - (BOOL) userIsOrganizer: (SOGoUser *) user;