]> err.no Git - sope/blob - sope-mime/NGImap4/NGImap4Functions.h
fixed copyrights for 2005
[sope] / sope-mime / NGImap4 / NGImap4Functions.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
6   SOPE 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   SOPE 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 SOPE; 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 __NGMime_NGImap4_NGImap4Functions_H__
23 #define __NGMime_NGImap4_NGImap4Functions_H__
24
25 #import <Foundation/NSObject.h>
26 #include <NGImap4/NGImap4Folder.h>
27
28 @class NSString, NSException;
29
30 @interface NGImap4FolderHandler : NSObject
31
32 + (id)sharedImap4FolderHandler;
33
34 - (NGImap4Folder *)subfolderWithName:(NSString *)_name
35   parentFolder:(id<NGImap4Folder>)_parent
36   ignoreCase:(BOOL)_caseIns;
37
38 - (BOOL)isFolder:(id<NGImap4Folder>)_child 
39   aSubfolderOf:(id<NGImap4Folder>)_parent;
40
41 - (NSException *)createSubfolderWithName:(NSString *)_name
42   parentFolder:(id<NGImap4Folder>)_parent
43   append:(BOOL)_append;
44
45 @end
46
47 NGImap4Folder *_subFolderWithName(id<NGImap4Folder> self, NSString *_name,
48                                   BOOL _caseIns);
49 BOOL _checkResult(NGImap4Context *_ctx, NSDictionary *_dict,
50                   const char *_command);
51 BOOL _isSubFolder(id<NGImap4Folder> self, id<NGImap4Folder>_folder);
52 BOOL _hasNewMessagesInSubFolder(id<NGImap4Folder> self, BOOL _fetch);
53 BOOL _hasUnseenMessagesInSubFolder(id<NGImap4Folder> self, BOOL _fetch);
54 BOOL _deleteSubFolder(id<NGImap4Folder> self, NGImap4Folder *_folder);
55 BOOL _copySubFolder(id<NGImap4Folder> self,
56                     id<NGImap4Folder> _f, id<NGImap4Folder> _toFolder);
57 BOOL _moveSubFolder(id<NGImap4Folder> self, NGImap4Folder *_f,
58                     id<NGImap4Folder>_folder);
59 BOOL _createSubFolderWithName(id<NGImap4Folder> self, NSString *_name, BOOL _app);
60
61 #endif /* __NGMime_NGImap4_NGImap4Functions_H__ */