2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
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
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.
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
22 #ifndef __NGMime_NGImap4_NGImap4Functions_H__
23 #define __NGMime_NGImap4_NGImap4Functions_H__
25 #import <Foundation/NSObject.h>
26 #include <NGImap4/NGImap4Folder.h>
28 @class NSString, NSException;
30 @interface NGImap4FolderHandler : NSObject
32 + (id)sharedImap4FolderHandler;
34 - (NGImap4Folder *)subfolderWithName:(NSString *)_name
35 parentFolder:(id<NGImap4Folder>)_parent
36 ignoreCase:(BOOL)_caseIns;
38 - (BOOL)isFolder:(id<NGImap4Folder>)_child
39 aSubfolderOf:(id<NGImap4Folder>)_parent;
41 - (NSException *)createSubfolderWithName:(NSString *)_name
42 parentFolder:(id<NGImap4Folder>)_parent
47 NGImap4Folder *_subFolderWithName(id<NGImap4Folder> self, NSString *_name,
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);
61 #endif /* __NGMime_NGImap4_NGImap4Functions_H__ */