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/NSCalendarDate.h>
#import <Foundation/NSDictionary.h> #import <Foundation/NSDictionary.h>
#import <Foundation/NSString.h> #import <Foundation/NSString.h>
#import <Foundation/NSValue.h>
#import "iCalEvent.h" #import "iCalEvent.h"
#import "iCalTrigger.h" #import "iCalTrigger.h"
@ -114,7 +115,7 @@
data = [NSDictionary dictionaryWithObjectsAndKeys: data = [NSDictionary dictionaryWithObjectsAndKeys:
relation, @"relation", relation, @"relation",
reference, @"reference", reference, @"reference",
quantity, @"quantity", [NSNumber numberWithInt: [quantity intValue]], @"quantity",
unit, @"unit", unit, @"unit",
nil]; nil];
} }

View File

@ -1,6 +1,6 @@
/* iCalEntityObject+SOGo.h - this file is part of SOGo /* 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 * 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 * it under the terms of the GNU General Public License as published by
@ -26,6 +26,7 @@
@class iCalAlarm; @class iCalAlarm;
@class NSMutableDictionary; @class NSMutableDictionary;
@class SOGoUser; @class SOGoUser;
@class WOContext;
extern NSCalendarDate *iCalDistantFuture; extern NSCalendarDate *iCalDistantFuture;
extern NSNumber *iCalDistantFutureNumber; extern NSNumber *iCalDistantFutureNumber;
@ -35,6 +36,8 @@ extern NSNumber *iCalDistantFutureNumber;
+ (void) initializeSOGoExtensions; + (void) initializeSOGoExtensions;
- (NSDictionary *) attributes; - (NSDictionary *) attributes;
- (void) setAttributes: (NSDictionary *) data
inContext: (WOContext *) context;
- (BOOL) userIsAttendee: (SOGoUser *) user; - (BOOL) userIsAttendee: (SOGoUser *) user;
- (BOOL) userIsOrganizer: (SOGoUser *) user; - (BOOL) userIsOrganizer: (SOGoUser *) user;