Monotone-Parent: cd56286d917362c02385175d3f2f34744449e59d

Monotone-Revision: 55094f9b3879e2695c7e1e15777fdf117118b525

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-04T23:01:12
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2006-08-04 23:01:12 +00:00
parent 9d657fbf0a
commit e2f6f553b1
2 changed files with 47 additions and 5 deletions

View File

@ -26,9 +26,9 @@
/*
SOGoContactFolder
Parent object: the SOGoUserFolder
Parent object: the user's SOGoUserFolders
Child objects: SOGoContactObject
The SOGoContactFolder maps to an GCS folder of type 'contact', that
is, a content folder containing vcal?? files (and a proper quicktable).
*/
@ -36,12 +36,23 @@
@class NSString, NSArray, NSCalendarDate, NSException;
@class GCSFolder;
@class SOGoContactSource;
@interface SOGoContactFolder : SOGoFolder
{
}
/* fetching */
+ (id) contactFolderWithSource: (SOGoContactSource *) source
inContainer: (SOGoObject *) newContainer
andName: (NSString *) name;
- (id) initWithSource: (SOGoContactSource *) source
inContainer: (SOGoObject *) newContainer
andName: (NSString *) name;
- (void) setContactSource: (SOGoContactSource *) source
andName: name;
- (NSArray *)fetchCoreInfos;
@end

View File

@ -30,6 +30,35 @@
@implementation SOGoContactFolder
+ (id) contactFolderWithSource: (SOGoContactSource *) source
inContainer: (SOGoObject *) container
andName: (NSString *) name
{
SOGoContactFolder *folder;
folder = [[self alloc] initWithSource: source
inContainer: container
andName: name];
[folder autorelease];
return folder;
}
- (id) initWithSource: (SOGoContactSource *) source
inContainer: (SOGoObject *) newContainer
andName: (NSString *) name
{
if ((self = [self initWithName: name inContainer: newContainer]))
[self setContactSource: source andName: name];
return self;
}
- (void) setContactSource: (SOGoContactSource *) source
andName: name
{
}
/* name lookup */
- (BOOL)isValidContactName:(NSString *)_key {
@ -39,7 +68,9 @@
return YES;
}
- (id)contactWithName:(NSString *)_key inContext:(id)_ctx {
- (id) contactWithName: (NSString *) _key
inContext: (id)_ctx
{
static Class ctClass = Nil;
id ct;