Monotone-Parent: 431e778e50cbef56367e4abff8e79f98bf274490

Monotone-Revision: 8b476e4386c24a321d3c6f26a7b2762835d3b94e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-30T22:42:14
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-30 22:42:14 +00:00
parent 118e05cc78
commit cdc58167f2
3 changed files with 36 additions and 0 deletions
+5
View File
@@ -1,5 +1,10 @@
2006-10-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Scheduler/UIxComponent+Agenor.m ([UIxComponent
-getICalPersonsFromValue:selectorValue]): method taken from
UIxFreeBusyUserSelector, that is shared both by
UIxFreeBusyUserSelector and UIxFreeBusyUserSelectorTable.
* SoObjects/Appointments/SOGoAppointmentFolder.m
([SOGoAppointmentFolder
-fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]): reverted to search algorithm to search for events happening outside 0 or 1 (at most) boundary of the timerange.
+4
View File
@@ -27,12 +27,16 @@
#include <SOGoUI/UIxComponent.h>
@interface UIxComponent (Agenor)
- (NSArray *) getICalPersonsFromValue: (NSString *) selectorValue;
/* email, cn */
- (NSString *)emailForUser;
- (NSString *)cnForUser;
/* restrictions */
- (BOOL)isAccessRestricted;
@end
#endif /* __UIxComponent_Agenor_H_ */
+27
View File
@@ -27,6 +27,33 @@
@implementation UIxComponent(Agenor)
- (NSArray *) getICalPersonsFromValue: (NSString *) selectorValue
{
NSMutableArray *persons;
NSEnumerator *uids;
NSString *uid;
AgenorUserManager *um;
um = [AgenorUserManager sharedUserManager];
persons = [NSMutableArray new];
[persons autorelease];
if ([selectorValue length] > 0)
{
uids = [[selectorValue componentsSeparatedByString: @","]
objectEnumerator];
uid = [uids nextObject];
while (uid)
{
[persons addObject: [um iCalPersonWithUid: uid]];
uid = [uids nextObject];
}
}
return persons;
}
- (NSString *)emailForUser {
return [[[self context] activeUser] email];
}