mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-29 13:55:42 +00:00
Monotone-Parent: 755524b00e9b962e6240a95f6bfdd559ca240f5a
Monotone-Revision: b37f3f6ae0b2c8936fa170defaec8e6b7c107b85 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-14T20:43:55 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
55b39d214d
commit
6b539e8e15
8 files changed
+57
-31
No files matched your search
@@ -20,12 +20,32 @@
|
||||
*/
|
||||
// $Id: UIxAppointmentEditor.m 181 2004-08-11 15:13:25Z helge $
|
||||
|
||||
#include "iCalPerson+UIx.h"
|
||||
#include "common.h"
|
||||
#import <SOGo/AgenorUserManager.h>
|
||||
#import "iCalPerson+UIx.h"
|
||||
#import "common.h"
|
||||
|
||||
@implementation iCalPerson(Convenience)
|
||||
@implementation iCalPerson (Convenience)
|
||||
|
||||
- (NSString *)cnForDisplay {
|
||||
+ (iCalPerson *) personWithUid: (NSString *) uid
|
||||
{
|
||||
iCalPerson *person;
|
||||
AgenorUserManager *um;
|
||||
NSString *email, *cn;
|
||||
|
||||
person = [self new];
|
||||
[person autorelease];
|
||||
|
||||
um = [AgenorUserManager sharedUserManager];
|
||||
email = [um getEmailForUID: uid];
|
||||
cn = [um getCNForUID: uid];
|
||||
[person setCn: cn];
|
||||
[person setEmail: email];
|
||||
|
||||
return person;
|
||||
}
|
||||
|
||||
- (NSString *) cnForDisplay
|
||||
{
|
||||
return [self cnWithoutQuotes];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user