2009-09-25 16:42:33 +02:00
|
|
|
/* SOGoContactSourceFolder.h - this file is part of SOGo
|
2006-08-09 23:22:26 +02:00
|
|
|
*
|
2016-02-24 22:47:07 +01:00
|
|
|
* Copyright (C) 2006-2016 Inverse inc.
|
2006-08-09 23:22:26 +02:00
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2009-09-25 16:42:33 +02:00
|
|
|
#ifndef SOGOCONTACTSOURCEFOLDER_H
|
|
|
|
#define SOGOCONTACTSOURCEFOLDER_H
|
2006-08-09 23:22:26 +02:00
|
|
|
|
2007-11-08 00:34:25 +01:00
|
|
|
#import "SOGoFolder+CardDAV.h"
|
2006-08-09 23:22:26 +02:00
|
|
|
|
2011-12-30 21:39:07 +01:00
|
|
|
#import <SOGo/SOGoSource.h>
|
2007-05-09 21:19:30 +02:00
|
|
|
|
2011-12-30 21:39:07 +01:00
|
|
|
@class NSMutableDictionary;
|
|
|
|
@class SOGoContactLDIFEntry;
|
2006-08-09 23:22:26 +02:00
|
|
|
|
2009-09-25 16:42:33 +02:00
|
|
|
@interface SOGoContactSourceFolder : SOGoFolder <SOGoContactFolder>
|
2006-08-09 23:22:26 +02:00
|
|
|
{
|
2011-12-30 21:39:07 +01:00
|
|
|
id <SOGoSource> source;
|
2010-03-30 16:35:09 +02:00
|
|
|
NSMutableDictionary *childRecords;
|
2012-01-04 16:26:30 +01:00
|
|
|
BOOL isPersonalSource;
|
2006-08-09 23:22:26 +02:00
|
|
|
}
|
|
|
|
|
2007-09-11 22:19:40 +02:00
|
|
|
+ (id) folderWithName: (NSString *) aName
|
|
|
|
andDisplayName: (NSString *) aDisplayName
|
|
|
|
inContainer: (id) aContainer;
|
|
|
|
- (id) initWithName: (NSString *) newName
|
|
|
|
andDisplayName: (NSString *) newDisplayName
|
|
|
|
inContainer: (id) newContainer;
|
2011-12-30 21:39:07 +01:00
|
|
|
- (void) setSource: (id <SOGoSource>) newSource;
|
|
|
|
|
|
|
|
- (NSException *) saveLDIFEntry: (SOGoContactLDIFEntry *) ldifEntry;
|
|
|
|
- (NSException *) deleteLDIFEntry: (SOGoContactLDIFEntry *) ldifEntry;
|
2006-08-09 23:22:26 +02:00
|
|
|
|
2012-01-04 16:26:30 +01:00
|
|
|
- (void) setIsPersonalSource: (BOOL) isPersonal;
|
|
|
|
- (BOOL) isPersonalSource;
|
|
|
|
|
2016-02-24 22:47:07 +01:00
|
|
|
- (BOOL) listRequiresDot;
|
|
|
|
|
2006-08-09 23:22:26 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
|
2009-09-25 16:42:33 +02:00
|
|
|
#endif /* SOGOCONTACTSOURCEFOLDER_H */
|