sogo/SoObjects/Mailer/SOGoMailBaseObject.h
Wolfgang Sourdeau fa9c597326 Monotone-Parent: b276b0b2cf3fd8f563a06677fbf148c5e194e35b
Monotone-Revision: d9a26f5712322a6281730be3cb696dcdb9b5ad58

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-08-09T02:31:54
Monotone-Branch: ca.inverse.sogo
2007-08-09 02:31:54 +00:00

79 lines
1.9 KiB
Objective-C

/*
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;
}
- (id)initWithImap4URL:(NSURL *)_url inContainer:(id)_container;
/* hierarchy */
- (SOGoMailAccount *)mailAccountFolder;
- (SOGoMailAccounts *)mailAccountsFolder;
/* IMAP4 */
- (NGImap4Connection *)imap4Connection;
- (NGImap4ConnectionManager *)mailManager;
- (NSString *) relativeImap4Name;
- (NSMutableString *) imap4URLString;
- (NSURL *)imap4URL;
- (NSString *)imap4Login;
- (NSString *)imap4Password;
- (void)flushMailCaches;
/* IMAP4 names */
- (BOOL)isBodyPartKey:(NSString *)_key inContext:(id)_ctx;
@end
#endif /* __Mailer_SOGoMailBaseObject_H__ */