Monotone-Parent: e9bc6cb46a4431aee9c0112701adef16e8fde065

Monotone-Revision: 7c4177d2b834fedabafddbf55ecc038b138f0f4b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-09T19:01:30
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-09 19:01:30 +00:00
parent 04afaf5430
commit 0b0e45fd3c
2 changed files with 8 additions and 22 deletions

View File

@@ -30,10 +30,6 @@
- (NSArray *) getICalPersonsFromValue: (NSString *) selectorValue;
/* email, cn */
- (NSString *) emailForUser;
- (NSString *) cnForUser;
@end
#endif /* __UIxComponent_Agenor_H_ */

View File

@@ -19,11 +19,11 @@
02111-1307, USA.
*/
#include "UIxComponent+Agenor.h"
#include <SOGo/AgenorUserManager.h>
#include <SOGo/WOContext+Agenor.h>
#include <SOGo/SOGoUser.h>
#include "common.h"
#import <SoObjects/Appointments/SOGoCalendarComponent.h>
#import <SoObjects/SOGo/WOContext+Agenor.h>
#import <SoObjects/SOGo/SOGoUser.h>
#import "UIxComponent+Scheduler.h"
@implementation UIxComponent(Agenor)
@@ -32,9 +32,9 @@
NSMutableArray *persons;
NSEnumerator *uids;
NSString *uid;
AgenorUserManager *um;
SOGoCalendarComponent *component;
um = [AgenorUserManager sharedUserManager];
component = [self clientObject];
persons = [NSMutableArray new];
[persons autorelease];
@@ -46,7 +46,7 @@
uid = [uids nextObject];
while (uid)
{
[persons addObject: [um iCalPersonWithUid: uid]];
[persons addObject: [component iCalPersonWithUID: uid]];
uid = [uids nextObject];
}
}
@@ -54,14 +54,4 @@
return persons;
}
- (NSString *) emailForUser
{
return [[context activeUser] email];
}
- (NSString *) cnForUser
{
return [[context activeUser] cn];
}
@end /* UIxComponent(Agenor) */