2006-06-15 21:34:10 +02:00
|
|
|
/*
|
|
|
|
Copyright (C) 2004-2005 SKYRIX Software AG
|
2016-01-22 16:30:27 +01:00
|
|
|
Copyright (C) 2009-2016 Inverse inc.
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2016-01-22 16:30:27 +01:00
|
|
|
This file is part of SOGo.
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2016-01-22 16:30:27 +01:00
|
|
|
SOGo is free software; you can redistribute it and/or modify it under
|
2006-06-15 21:34:10 +02:00
|
|
|
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.
|
|
|
|
|
2016-01-22 16:30:27 +01:00
|
|
|
SOGo is distributed in the hope that it will be useful, but WITHOUT ANY
|
2006-06-15 21:34:10 +02:00
|
|
|
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 __Mailer_SOGoMailBaseObject_H__
|
|
|
|
#define __Mailer_SOGoMailBaseObject_H__
|
|
|
|
|
|
|
|
#include <SOGo/SOGoObject.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
SOGoMailBaseObject
|
|
|
|
|
|
|
|
Common base class for mailer SoObjects.
|
|
|
|
|
|
|
|
Subclasses:
|
|
|
|
SOGoDraftObject
|
|
|
|
SOGoDraftsFolder
|
|
|
|
SOGoMailAccount
|
|
|
|
SOGoMailBodyPart
|
|
|
|
SOGoMailFolder
|
|
|
|
SOGoMailObject
|
|
|
|
*/
|
|
|
|
|
|
|
|
@class NSString, NSArray, NSURL;
|
|
|
|
@class NGImap4ConnectionManager, NGImap4Connection;
|
|
|
|
@class SOGoMailAccount, SOGoMailAccounts;
|
|
|
|
|
|
|
|
@interface SOGoMailBaseObject : SOGoObject
|
|
|
|
{
|
|
|
|
NSURL *imap4URL;
|
|
|
|
NGImap4Connection *imap4;
|
2016-06-23 14:58:25 +02:00
|
|
|
BOOL imap4ExceptionsEnabled;
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2008-03-04 21:57:36 +01:00
|
|
|
- (BOOL) isFolderish;
|
|
|
|
|
2016-06-23 14:58:25 +02:00
|
|
|
- (id) init;
|
|
|
|
|
2007-08-15 22:19:39 +02:00
|
|
|
- (id) initWithImap4URL: (NSURL *) _url
|
|
|
|
inContainer: (id) _container;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* hierarchy */
|
|
|
|
|
2007-08-15 22:19:39 +02:00
|
|
|
- (SOGoMailAccount *) mailAccountFolder;
|
|
|
|
- (SOGoMailAccounts *) mailAccountsFolder;
|
|
|
|
- (BOOL) isInDraftsFolder;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* IMAP4 */
|
|
|
|
|
2007-08-15 22:19:39 +02:00
|
|
|
- (NGImap4Connection *) imap4Connection;
|
|
|
|
- (NGImap4ConnectionManager *) mailManager;
|
2007-08-09 04:31:54 +02:00
|
|
|
|
|
|
|
- (NSString *) relativeImap4Name;
|
|
|
|
- (NSMutableString *) imap4URLString;
|
2007-10-31 16:55:47 +01:00
|
|
|
- (NSMutableString *) traversalFromMailAccount;
|
2007-08-09 04:31:54 +02:00
|
|
|
|
2007-08-15 22:19:39 +02:00
|
|
|
- (NSURL *) imap4URL;
|
2010-01-28 22:42:03 +01:00
|
|
|
- (NSString *) imap4PasswordRenewed: (BOOL) renew;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2007-08-15 22:19:39 +02:00
|
|
|
- (void) flushMailCaches;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* IMAP4 names */
|
|
|
|
|
2008-02-08 16:35:11 +01:00
|
|
|
- (BOOL) isBodyPartKey: (NSString *) key;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-09-29 22:13:36 +02:00
|
|
|
- (int) IMAP4IDFromAppendResult: (NSDictionary *) result;
|
|
|
|
|
2006-06-15 21:34:10 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* __Mailer_SOGoMailBaseObject_H__ */
|