Improve [iCalTrigger asDictionary]

pull/91/head
Francis Lachapelle 2015-02-10 21:15:56 -05:00
parent d123b2d5d4
commit 221e49a5d1
2 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,7 @@
#import <Foundation/NSCalendarDate.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSString.h>
#import <Foundation/NSValue.h>
#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];
}

View File

@ -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;