2006-06-15 21:34:10 +02:00
|
|
|
/*
|
|
|
|
Copyright (C) 2004-2005 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 __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;
|
|
|
|
}
|
|
|
|
|
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-08-15 22:19:39 +02:00
|
|
|
- (NSURL *) imap4URL;
|
|
|
|
- (NSString *) imap4Login;
|
|
|
|
- (NSString *) imap4Password;
|
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 */
|
|
|
|
|
2007-08-15 22:19:39 +02:00
|
|
|
- (BOOL) isBodyPartKey: (NSString *) _key inContext: (id) _ctx;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* __Mailer_SOGoMailBaseObject_H__ */
|