]> err.no Git - scalable-opengroupware.org/blob - SOGo/SoObjects/Mailer/SOGoMailManager.h
do not show Drafts folder in shared mailboxes
[scalable-opengroupware.org] / SOGo / SoObjects / Mailer / SOGoMailManager.h
1 /*
2   Copyright (C) 2004-2005 SKYRIX Software AG
3
4   This file is part of OpenGroupware.org.
5
6   OGo is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with OGo; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21
22 #ifndef __Mailer_SOGoMailManager_H__
23 #define __Mailer_SOGoMailManager_H__
24
25 #import <Foundation/NSObject.h>
26 #import <Foundation/NSRange.h>
27 #include <NGImap4/NGImap4ConnectionManager.h>
28
29 /*
30   NGImap4ConnectionManager(SOGoMailManager)
31   
32   Legacy methods, the methods were used prior the move to NGImap4.
33 */
34
35 @class NSString, NSData, NSURL, NSArray, NSMutableDictionary, NSTimer;
36 @class NSDictionary;
37 @class NSException;
38 @class NGImap4Client;
39
40 @interface NGImap4ConnectionManager(SOGoMailManager)
41
42 /* folder hierarchy */
43
44 - (NSArray *)subfoldersForURL:(NSURL *)_url password:(NSString *)_pwd;
45 - (NSArray *)allFoldersForURL:(NSURL *)_url password:(NSString *)_pwd;
46
47 /* messages */
48
49 - (NSArray *)fetchUIDsInURL:(NSURL *)_url qualifier:(id)_q
50   sortOrdering:(id)_so password:(NSString *)_pwd;
51 - (NSArray *)fetchUIDs:(NSArray *)_uids inURL:(NSURL *)_url
52   parts:(NSArray *)_parts password:(NSString *)_pwd;
53
54 - (NSException *)expungeAtURL:(NSURL *)_url password:(NSString *)_pwd;
55
56 /* individual message */
57
58 - (id)fetchURL:(NSURL *)_url parts:(NSArray *)_parts password:(NSString *)_pwd;
59
60 - (NSData *)fetchContentOfBodyPart:(NSString *)_partId
61   atURL:(NSURL *)_url password:(NSString *)_pwd;
62
63 - (NSException *)addFlags:(id)_f    toURL:(NSURL *)_u password:(NSString *)_p;
64 - (NSException *)removeFlags:(id)_f toURL:(NSURL *)_u password:(NSString *)_p;
65 - (NSException *)markURLDeleted:(NSURL *)_u           password:(NSString *)_p;
66
67 - (NSException *)postData:(NSData *)_data flags:(id)_flags
68   toFolderURL:(NSURL *)_url password:(NSString *)_p;
69
70 - (NSException *)copyMailURL:(NSURL *)_srcurl toFolderURL:(NSURL *)_desturl
71   password:(NSString *)_pwd;
72
73 /* managing folders */
74
75 - (BOOL)doesMailboxExistAtURL:(NSURL *)_url password:(NSString *)_pwd;
76 - (id)infoForMailboxAtURL:(NSURL *)_url     password:(NSString *)_pwd;
77
78 - (NSException *)createMailbox:(NSString *)_mailbox atURL:(NSURL *)_url
79   password:(NSString *)_pwd;
80 - (NSException *)deleteMailboxAtURL:(NSURL *)_url password:(NSString *)_pwd;
81
82 - (NSException *)moveMailboxAtURL:(NSURL *)_srcurl toURL:(NSURL *)_desturl
83   password:(NSString *)_pwd;
84
85 - (NSDictionary *)aclForMailboxAtURL:(NSURL *)_url password:(NSString *)_pwd;
86 - (NSString *)myRightsForMailboxAtURL:(NSURL *)_url password:(NSString *)_pwd;
87
88 - (NSException *)addFlags:(id)_f toAllMessagesInURL:(NSURL *)_u
89   password:(NSString *)_p;
90
91 @end
92
93 #endif /* __Mailer_SOGoMailManager_H__ */