2007-09-11 22:14:18 +02:00
|
|
|
/* SOGoParentFolder.h - this file is part of SOGo
|
|
|
|
*
|
2015-01-06 16:59:56 +01:00
|
|
|
* Copyright (C) 2006-2015 Inverse inc.
|
2007-09-11 22:14:18 +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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SOGOPARENTFOLDERS_H
|
|
|
|
#define SOGOPARENTFOLDERS_H
|
|
|
|
|
2007-11-07 16:58:43 +01:00
|
|
|
#import "SOGoFolder.h"
|
2014-03-25 19:53:42 +01:00
|
|
|
#import "SOGoConstants.h"
|
2007-09-11 22:14:18 +02:00
|
|
|
|
2014-04-08 17:19:53 +02:00
|
|
|
@class EOAdaptorChannel;
|
2007-09-11 22:14:18 +02:00
|
|
|
@class NSMutableDictionary;
|
|
|
|
@class NSString;
|
|
|
|
@class WOResponse;
|
|
|
|
|
2007-11-07 16:58:43 +01:00
|
|
|
@interface SOGoParentFolder : SOGoFolder
|
2007-09-11 22:14:18 +02:00
|
|
|
{
|
2009-06-29 21:08:29 +02:00
|
|
|
NSMutableDictionary *subFolders, *subscribedSubFolders;
|
2007-09-11 22:14:18 +02:00
|
|
|
NSString *OCSPath;
|
|
|
|
Class subFolderClass;
|
2008-12-17 15:33:14 +01:00
|
|
|
BOOL hasSubscribedSources;
|
2007-09-11 22:14:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (NSString *) gcsFolderType;
|
|
|
|
+ (Class) subFolderClass;
|
|
|
|
|
2007-11-07 16:58:43 +01:00
|
|
|
- (NSString *) defaultFolderName;
|
2014-03-27 20:27:48 +01:00
|
|
|
- (NSString *) collectedFolderName;
|
2007-11-07 16:58:43 +01:00
|
|
|
|
2012-01-04 16:26:30 +01:00
|
|
|
- (NSException *) appendPersonalSources;
|
2012-02-02 02:42:02 +01:00
|
|
|
- (void) removeSubFolder: (NSString *) subfolderName;
|
2012-01-04 16:26:30 +01:00
|
|
|
|
2007-09-11 22:14:18 +02:00
|
|
|
- (void) setBaseOCSPath: (NSString *) newOCSPath;
|
|
|
|
|
2008-07-09 23:09:08 +02:00
|
|
|
- (NSArray *) toManyRelationshipKeys;
|
2007-09-11 22:14:18 +02:00
|
|
|
- (NSArray *) subFolders;
|
|
|
|
|
2009-10-07 22:24:54 +02:00
|
|
|
- (BOOL) hasLocalSubFolderNamed: (NSString *) name;
|
|
|
|
|
2007-11-07 16:58:43 +01:00
|
|
|
- (NSException *) newFolderWithName: (NSString *) name
|
|
|
|
andNameInContainer: (NSString *) newNameInContainer;
|
2007-09-15 00:01:02 +02:00
|
|
|
- (NSException *) newFolderWithName: (NSString *) name
|
|
|
|
nameInContainer: (NSString **) newNameInContainer;
|
2007-09-11 22:14:18 +02:00
|
|
|
|
2010-07-15 19:05:34 +02:00
|
|
|
- (id) lookupPersonalFolder: (NSString *) name
|
|
|
|
ignoringRights: (BOOL) ignoreRights;
|
|
|
|
|
2014-04-08 17:19:53 +02:00
|
|
|
- (NSException *) fetchSpecialFolders: (NSString *) sql
|
|
|
|
withChannel: (EOAdaptorChannel *) fc
|
|
|
|
andFolderType: (SOGoFolderType) folderType;
|
|
|
|
|
2007-09-11 22:14:18 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* SOGOPARENTFOLDERS_H */
|