mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +00:00
Monotone-Parent: effc0ea5c248c71e6b7996a01b73ce09b7609780
Monotone-Revision: a004f12155b916af0dd5336aa31347b570b5395b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-06-30T18:31:03 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
f50e9b4d0f
commit
843b7d3616
3 files changed
+23
No files matched your search
@@ -1,3 +1,9 @@
|
||||
2008-06-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalFreeBusy.m ([iCalFreeBusy
|
||||
-fillStartDate:startDateandEndDate:endDate]): new method created
|
||||
to avoid enlarging the code.
|
||||
|
||||
2008-04-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalRecurrenceCalculator.m ([iCalRecurrenceCalculator
|
||||
|
||||
@@ -43,6 +43,9 @@ typedef enum iCalFreeBusyType
|
||||
- (NSCalendarDate *) endDate;
|
||||
- (BOOL) hasEndDate;
|
||||
|
||||
- (void) fillStartDate: (NSCalendarDate **) startDate
|
||||
andEndDate: (NSCalendarDate **) endDate;
|
||||
|
||||
- (void) addFreeBusyFrom: (NSCalendarDate *) start
|
||||
to: (NSCalendarDate *) end
|
||||
type: (iCalFreeBusyType) type;
|
||||
|
||||
@@ -62,6 +62,20 @@
|
||||
return ([[self childrenWithTag: @"dtend"] count] > 0);
|
||||
}
|
||||
|
||||
- (void) fillStartDate: (NSCalendarDate **) startDate
|
||||
andEndDate: (NSCalendarDate **) endDate
|
||||
{
|
||||
if ([self hasStartDate])
|
||||
*startDate = [self startDate];
|
||||
else
|
||||
*startDate = nil;
|
||||
|
||||
if ([self hasEndDate])
|
||||
*endDate = [self endDate];
|
||||
else
|
||||
*endDate = nil;
|
||||
}
|
||||
|
||||
- (NSString *) _freeBusyTypeString: (iCalFreeBusyType) type
|
||||
{
|
||||
NSString *typeString;
|
||||
|
||||
Reference in new issue
Block a user