Monotone-Parent: 55094f9b3879e2695c7e1e15777fdf117118b525

Monotone-Revision: f9c9d582c4fef2a61df1962826c6a5ce6b067c53

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-04T23:02:13
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-08-04 23:02:13 +00:00
parent e2f6f553b1
commit 62b7ba637e
2 changed files with 31 additions and 18 deletions
+4
View File
@@ -1,5 +1,9 @@
2006-08-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder
-privateContacts:inContext:]): now returns an instance of
SOGoContactFolders.
* UI/Contacts/UIxContactsListViewContainer.m
([UIxContactsListViewContainer -contactFolderName]): new method to
return the absolute path to the current contact folder, called
+27 -18
View File
@@ -19,9 +19,11 @@
02111-1307, USA.
*/
#include "SOGoUserFolder.h"
#include "WOContext+Agenor.h"
#include "common.h"
#import "SOGoUserFolder.h"
#import "WOContext+Agenor.h"
#import "common.h"
#import "Contacts/SOGoContactFolders.h"
@implementation SOGoUserFolder
@@ -54,6 +56,7 @@
- (SOGoUserFolder *)lookupUserFolder {
return self;
}
- (SOGoGroupsFolder *)lookupGroupsFolder {
return [self lookupName:@"Groups" inContext:nil acquire:NO];
}
@@ -96,20 +99,26 @@
return [calendar autorelease];
}
- (id)privateContacts:(NSString *)_key inContext:(id)_ctx {
static Class calClass = Nil;
id calendar;
if (calClass == Nil)
calClass = NSClassFromString(@"SOGoContactFolder");
if (calClass == Nil) {
[self errorWithFormat:@"missing SOGoContactFolder class!"];
return nil;
}
calendar = [[calClass alloc] initWithName:_key inContainer:self];
[calendar setOCSPath:[self ocsPrivateContactsPath]];
return [calendar autorelease];
- (SOGoContactFolders *) privateContacts: (NSString *)_key inContext:(id)_ctx
{
static Class contactsClass = Nil;
SOGoContactFolders *contacts;
if (!contactsClass)
contactsClass = NSClassFromString (@"SOGoContactFolders");
if (!contactsClass)
{
[self errorWithFormat:@"missing SOGoContactFolders class!"];
contacts = nil;
}
else
{
contacts = [[contactsClass alloc] initWithName:_key inContainer: self];
[contacts autorelease];
[contacts setBaseOCSPath: [self ocsPrivateContactsPath]];
}
return contacts;
}
- (id)groupsFolder:(NSString *)_key inContext:(id)_ctx {
@@ -207,7 +216,7 @@
return cos;
}
- (BOOL)davIsCollection {
- (BOOL) davIsCollection {
return YES;
}