]> err.no Git - sope/blob - sope-mime/NGImap4/NGImap4FileManager.h
synced with latest additions and bumped framework versions
[sope] / sope-mime / NGImap4 / NGImap4FileManager.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  __NGImap4FileManager_H__
23 #define __NGImap4FileManager_H__
24
25 #import <Foundation/NSObject.h>
26 #include <NGExtensions/NGFileManager.h>
27
28 @class NSArray, NSString, NSData, NSDictionary, NSURL;
29 @class NGImap4Context, NGImap4Folder, NGImap4Message;
30 @class EODataSource;
31
32 @interface NGImap4FileManager : NGFileManager
33 {
34   NGImap4Context *imapContext;
35   NGImap4Folder  *rootFolder;
36   NGImap4Folder  *currentFolder;
37 }
38
39 - (id)initWithURL:(NSURL *)_url;
40 - (id)initWithUser:(NSString *)_user
41   password:(NSString *)_pwd
42   host:(NSString *)_host;
43
44 /* operations */
45
46 - (id)imapContext;
47
48 - (BOOL)createDirectoryAtPath:(NSString *)_path
49   attributes:(NSDictionary *)_attributes;
50 - (BOOL)changeCurrentDirectoryPath:(NSString *)_path;
51 - (NSString *)currentDirectoryPath;
52 - (NGImap4Folder *)currentFolder;
53
54 - (NGImap4Message *)messageAtPath:(NSString *)_path;
55 - (NSData *)contentsAtPath:(NSString *)_path part:(NSString *)_part;
56 - (NSData *)contentsAtPath:(NSString *)_path;
57 - (NSArray *)directoryContentsAtPath:(NSString *)_path;
58 - (NSArray *)directoriesAtPath:(NSString *)_path;
59 - (NSArray *)filesAtPath:(NSString *)_path;
60 - (NSArray *)directoryContentsAtPath:(NSString *)_path
61   directories:(BOOL)_dirs
62   files:(BOOL)_files;
63 - (EODataSource *)dataSourceAtPath:(NSString *)_path;
64
65 - (BOOL)fileExistsAtPath:(NSString *)_path;
66 - (BOOL)fileExistsAtPath:(NSString *)_path isDirectory:(BOOL *)_isDir;
67 - (BOOL)isReadableFileAtPath:(NSString *)_path;
68 - (BOOL)isWritableFileAtPath:(NSString *)_path;
69 - (BOOL)isExecutableFileAtPath:(NSString *)_path;
70 - (BOOL)isDeletableFileAtPath:(NSString *)_path;
71
72 - (BOOL)syncMode;
73 - (void)setSyncMode:(BOOL)_bool;
74
75 @end
76
77 #endif /* __NGImap4FileManager_H__ */