2006-06-15 21:34:10 +02:00
|
|
|
/*
|
|
|
|
Copyright (C) 2004 SKYRIX Software AG
|
|
|
|
|
|
|
|
This file is part of OpenGroupware.org.
|
|
|
|
|
|
|
|
OGo is free software; you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU Lesser General Public License as published by the
|
|
|
|
Free Software Foundation; either version 2, or (at your option) any
|
|
|
|
later version.
|
|
|
|
|
|
|
|
OGo 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 Lesser General Public
|
|
|
|
License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with OGo; see the file COPYING. If not, write to the
|
|
|
|
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SOGo_SOGoContentObject_H__
|
|
|
|
#define __SOGo_SOGoContentObject_H__
|
|
|
|
|
2006-09-27 00:28:28 +02:00
|
|
|
#import <SOGo/SOGoObject.h>
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2007-04-17 16:32:47 +02:00
|
|
|
@class NSArray;
|
|
|
|
@class NSException;
|
|
|
|
@class NSString;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
@interface SOGoContentObject : SOGoObject
|
|
|
|
{
|
|
|
|
NSString *ocsPath;
|
2008-01-16 19:59:58 +01:00
|
|
|
NSDictionary *record;
|
2007-06-01 22:59:47 +02:00
|
|
|
BOOL isNew;
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* accessors */
|
|
|
|
|
2007-04-17 16:32:47 +02:00
|
|
|
- (void) setOCSPath: (NSString *) _path;
|
|
|
|
- (NSString *) ocsPath;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* folder */
|
|
|
|
|
2007-04-17 16:32:47 +02:00
|
|
|
- (NSString *) ocsPathOfContainer;
|
|
|
|
- (GCSFolder *) ocsFolder;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* content */
|
|
|
|
|
2007-06-01 22:59:47 +02:00
|
|
|
- (BOOL) isNew;
|
2007-04-17 16:32:47 +02:00
|
|
|
- (NSString *) contentAsString;
|
|
|
|
- (NSException *) saveContentString: (NSString *) _str
|
|
|
|
baseVersion: (unsigned int) _baseVersion;
|
|
|
|
- (NSException *) saveContentString: (NSString *)_str;
|
|
|
|
- (NSException *) delete;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* etag support */
|
|
|
|
|
2007-04-17 16:32:47 +02:00
|
|
|
- (id) davEntityTag;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* message type */
|
|
|
|
|
2007-04-17 16:32:47 +02:00
|
|
|
- (NSString *) outlookMessageClass;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2007-11-18 11:16:25 +01:00
|
|
|
@interface SOGoContentObject (OptionalMethods)
|
|
|
|
|
|
|
|
- (void) prepareDelete;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2006-06-15 21:34:10 +02:00
|
|
|
#endif /* __SOGo_SOGoContentObject_H__ */
|