Monotone-Revision: 4012894fc79b7641cebac42647c13996d86e9eca Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-01-30T20:47:07 Monotone-Branch: ca.inverse.sogo
121 lines
3.3 KiB
Objective-C
121 lines
3.3 KiB
Objective-C
/*
|
|
Copyright (C) 2009-2011 Inverse inc.
|
|
Copyright (C) 2004-2005 SKYRIX Software AG
|
|
|
|
This file is part of SOGo
|
|
|
|
SOGo 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.
|
|
|
|
SOGo 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_SOGoMailFolder_H__
|
|
#define __Mailer_SOGoMailFolder_H__
|
|
|
|
#include <Mailer/SOGoMailBaseObject.h>
|
|
#import <Foundation/NSRange.h>
|
|
#import <NGObjWeb/WOResponse.h>
|
|
|
|
/*
|
|
SOGoMailFolder
|
|
Parent object: the SOGoMailAccount
|
|
Child objects: SOGoMailObject or SOGoMailFolder
|
|
|
|
The SOGoMailFolder maps to an IMAP4 folder from NGImap4.
|
|
*/
|
|
|
|
@class NSData, NSArray, NSException, NSMutableArray, NSMutableDictionary;
|
|
@class NGImap4MailboxInfo;
|
|
@class WOResponse;
|
|
|
|
@interface SOGoMailFolder : SOGoMailBaseObject
|
|
{
|
|
NSMutableArray *filenames;
|
|
NSString *folderType;
|
|
NSDictionary *mailboxACL;
|
|
NSMutableDictionary *prefetchedInfos;
|
|
}
|
|
|
|
- (NSString *) absoluteImap4Name;
|
|
|
|
/* messages */
|
|
- (void) prefetchCoreInfosForMessageKeys: (NSArray *) keys;
|
|
|
|
- (NSArray *) toOneRelationshipKeys;
|
|
- (NSArray *) toManyRelationshipKeys;
|
|
|
|
- (NSDictionary *) statusForFlags: (NSArray *) flags;
|
|
|
|
- (NSException *) deleteUIDs: (NSArray *) uids
|
|
useTrashFolder: (BOOL *) withTrash
|
|
inContext: (id) context;
|
|
- (WOResponse *) archiveUIDs: (NSArray *) uids
|
|
inArchiveNamed: (NSString *) archiveName
|
|
inContext: (id) context;
|
|
- (WOResponse *) archiveAllMessagesInContext: (id) localContext;
|
|
|
|
- (NSArray *) fetchUIDsMatchingQualifier: (id) _q sortOrdering: (id) _so;
|
|
- (NSArray *) fetchUIDsMatchingQualifier: (id) _q sortOrdering: (id) _so threaded: (BOOL) _threaded;
|
|
- (NSArray *) fetchUIDs: (NSArray *) _uids parts: (NSArray *) _parts;
|
|
- (NSArray *) fetchUIDsOfVanishedItems: (uint64_t) modseq;
|
|
|
|
- (WOResponse *) copyUIDs: (NSArray *) uids
|
|
toFolder: (NSString *) destinationFolder
|
|
inContext: (id) localContext;
|
|
- (WOResponse *) moveUIDs: (NSArray *) uids
|
|
toFolder: (NSString *) destinationFolder
|
|
inContext: (id) localContext;
|
|
|
|
- (NSException *) postData: (NSData *) _data flags: (id) _flags;
|
|
|
|
- (void) markForExpunge;
|
|
- (void) expungeLastMarkedFolder;
|
|
|
|
- (BOOL) create;
|
|
|
|
- (NSException *) expunge;
|
|
|
|
- (NSException *) renameTo: (NSString *) newName;
|
|
|
|
- (NSCalendarDate *) mostRecentMessageDate;
|
|
|
|
/* flags */
|
|
|
|
- (NSException *) addFlagsToAllMessages: (id) _f;
|
|
|
|
/* folder type */
|
|
|
|
- (NSArray *) subfolders;
|
|
|
|
- (BOOL) isSpecialFolder;
|
|
|
|
- (NSArray *) allFolderPaths;
|
|
- (NSArray *) allFolderURLs;
|
|
|
|
- (NSString *) userSpoolFolderPath;
|
|
- (BOOL) ensureSpoolFolderPath;
|
|
|
|
- (id) appendMessage: (NSData *) message
|
|
usingId: (int *) imap4id;
|
|
|
|
@end
|
|
|
|
@interface SOGoSpecialMailFolder : SOGoMailFolder
|
|
|
|
- (BOOL) isSpecialFolder;
|
|
|
|
@end
|
|
|
|
#endif /* __Mailer_SOGoMailFolder_H__ */
|