Monotone-Parent: b4d434073c4829245e196a7cbb5d657675d0c67e

Monotone-Revision: 328de23f4c0448aedc1fb6ae6262b7f2d4805837

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-08T19:30:21
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-08 19:30:21 +00:00
parent 5e21997cc4
commit 20212d6ba7
2 changed files with 16 additions and 17 deletions
+4 -2
View File
@@ -22,10 +22,12 @@
#ifndef __Contacts_SOGoContactGCSFolder_H__
#define __Contacts_SOGoContactGCSFolder_H__
#import <SOGo/SOGoFolder.h>
#import <SoObjects/SOGo/SOGoFolder.h>
#import "SOGoContactFolder.h"
@class NSString, NSArray;
@class NSArray;
@class NSString;
@interface SOGoContactGCSFolder : SOGoFolder <SOGoContactFolder>
{
+12 -15
View File
@@ -47,24 +47,21 @@
return folder;
}
- (id <SOGoContactFolder>) initWithName: (NSString *) aName
andDisplayName: (NSString *) aDisplayName
inContainer: (SOGoObject *) aContainer
- (void) dealloc
{
if ((self = [self initWithName: aName
inContainer: aContainer]))
[self setDisplayName: aDisplayName];
return self;
[displayName release];
[super dealloc];
}
- (void) setDisplayName: (NSString *) aDisplayName
- (id <SOGoContactFolder>) initWithName: (NSString *) newName
andDisplayName: (NSString *) newDisplayName
inContainer: (SOGoObject *) newContainer
{
if (displayName)
[displayName release];
displayName = aDisplayName;
if (displayName)
[displayName retain];
if ((self = [self initWithName: newName
inContainer: newContainer]))
ASSIGN (displayName, newDisplayName);
return self;
}
- (NSString *) displayName
@@ -156,7 +153,7 @@
qualifier = [self _qualifierForFilter: filter];
records = [[self ocsFolder] fetchFields: fields
matchingQualifier: qualifier];
if (records)
if ([records count] > 1)
{
ordering
= [EOSortOrdering sortOrderingWithKey: sortKey