mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
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:
@@ -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>
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user