mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 07:14:21 +00:00
Monotone-Parent: 1a8298d1520d86d2ba9068bd72abcf7073aa20a8
Monotone-Revision: e9bc6cb46a4431aee9c0112701adef16e8fde065 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-09T18:25:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
6313ca4cd4
commit
04afaf5430
17 files changed
+91
-75
No files matched your search
@@ -25,7 +25,7 @@
|
||||
|
||||
#import "common.h"
|
||||
|
||||
#import <SOGo/AgenorUserManager.h>
|
||||
#import <SOGo/LDAPUserManager.h>
|
||||
#import <SOGo/SOGoPermissions.h>
|
||||
|
||||
#import "SOGoFreeBusyObject.h"
|
||||
@@ -110,11 +110,28 @@
|
||||
return fbType;
|
||||
}
|
||||
|
||||
- (iCalPerson *) iCalPersonWithUID: (NSString *) uid
|
||||
{
|
||||
iCalPerson *person;
|
||||
LDAPUserManager *um;
|
||||
NSDictionary *contactInfos;
|
||||
|
||||
um = [LDAPUserManager sharedUserManager];
|
||||
contactInfos = [um contactInfosForUserWithUIDorEmail: uid];
|
||||
|
||||
person = [iCalPerson new];
|
||||
[person autorelease];
|
||||
[person setCn: [contactInfos objectForKey: @"cn"]];
|
||||
[person setEmail: [contactInfos objectForKey: @"c_email"]];
|
||||
|
||||
return person;
|
||||
}
|
||||
|
||||
- (NSString *) iCalStringForFreeBusyInfos: (NSArray *) _infos
|
||||
from: (NSCalendarDate *) _startDate
|
||||
to: (NSCalendarDate *) _endDate
|
||||
{
|
||||
AgenorUserManager *um;
|
||||
LDAPUserManager *um;
|
||||
NSString *uid;
|
||||
NSEnumerator *events;
|
||||
iCalCalendar *calendar;
|
||||
@@ -122,7 +139,6 @@
|
||||
NSDictionary *info;
|
||||
iCalFreeBusyType type;
|
||||
|
||||
um = [AgenorUserManager sharedUserManager];
|
||||
uid = [[self container] login];
|
||||
|
||||
calendar = [iCalCalendar groupWithTag: @"vcalendar"];
|
||||
@@ -130,7 +146,7 @@
|
||||
[calendar setVersion: @"2.0"];
|
||||
|
||||
freebusy = [iCalFreeBusy groupWithTag: @"vfreebusy"];
|
||||
[freebusy addToAttendees: [um iCalPersonWithUid: uid]];
|
||||
[freebusy addToAttendees: [self iCalPersonWithUid: uid]];
|
||||
[freebusy setTimeStampAsDate: [NSCalendarDate calendarDate]];
|
||||
[freebusy setStartDate: _startDate];
|
||||
[freebusy setEndDate: _endDate];
|
||||
@@ -138,7 +154,7 @@
|
||||
/* ORGANIZER - strictly required but missing for now */
|
||||
|
||||
/* ATTENDEE */
|
||||
// person = [um iCalPersonWithUid: uid];
|
||||
// person = [self iCalPersonWithUid: uid];
|
||||
// [person setTag: @"ATTENDEE"];
|
||||
// [ms appendString: [person versitString]];
|
||||
|
||||
|
||||
Reference in new issue
Block a user