Monotone-Parent: cd56286d917362c02385175d3f2f34744449e59d
Monotone-Revision: 55094f9b3879e2695c7e1e15777fdf117118b525 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-04T23:01:12 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
9d657fbf0a
commit
e2f6f553b1
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue