2007-11-07 23:27:44 +01:00
|
|
|
/* SOGoFolder.h - this file is part of SOGo
|
|
|
|
*
|
2008-09-27 03:13:41 +02:00
|
|
|
* Copyright (C) 2007 Inverse inc.
|
2007-11-07 23:27:44 +01:00
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* 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 SOGOFOLDER_H
|
|
|
|
#define SOGOFOLDER_H
|
|
|
|
|
|
|
|
#import "SOGoObject.h"
|
|
|
|
|
|
|
|
@interface SOGoFolder : SOGoObject
|
|
|
|
{
|
|
|
|
NSMutableString *displayName;
|
2008-05-16 22:33:55 +02:00
|
|
|
BOOL isSubscription;
|
2007-11-07 23:27:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setDisplayName: (NSString *) newDisplayName;
|
|
|
|
- (NSString *) displayName;
|
|
|
|
|
2008-05-16 22:33:55 +02:00
|
|
|
- (void) setIsSubscription: (BOOL) newIsSubscription;
|
|
|
|
- (BOOL) isSubscription;
|
|
|
|
|
|
|
|
- (NSString *) realNameInContainer;
|
|
|
|
|
2007-11-07 23:27:44 +01:00
|
|
|
- (NSString *) folderType;
|
|
|
|
|
2010-06-04 22:49:30 +02:00
|
|
|
- (NSArray *) toOneRelationshipKeys;
|
|
|
|
- (NSArray *) toManyRelationshipKeys;
|
|
|
|
|
2008-03-07 23:14:44 +01:00
|
|
|
- (BOOL) isValidContentName: (NSString *) name;
|
|
|
|
|
2007-11-08 00:35:56 +01:00
|
|
|
/* sorting */
|
|
|
|
- (NSComparisonResult) compare: (id) otherFolder;
|
|
|
|
|
2007-11-07 23:27:44 +01:00
|
|
|
/* dav */
|
2007-12-06 23:51:04 +01:00
|
|
|
- (NSArray *) davResourceType;
|
2007-11-07 23:27:44 +01:00
|
|
|
|
|
|
|
/* outlook */
|
|
|
|
- (NSString *) outlookFolderClass;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2007-11-09 21:12:07 +01:00
|
|
|
@interface SOGoFolder (GroupDAVExtensions)
|
|
|
|
|
|
|
|
- (NSString *) groupDavResourceType;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2007-11-07 23:27:44 +01:00
|
|
|
#endif /* SOGOFOLDER_H */
|