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 __NGImap4FileManager_H__
23 #define __NGImap4FileManager_H__
25 #import <Foundation/NSObject.h>
26 #include <NGExtensions/NGFileManager.h>
28 @class NSArray, NSString, NSData, NSDictionary, NSURL;
29 @class NGImap4Context, NGImap4Folder, NGImap4Message;
32 @interface NGImap4FileManager : NGFileManager
34 NGImap4Context *imapContext;
35 NGImap4Folder *rootFolder;
36 NGImap4Folder *currentFolder;
39 - (id)initWithURL:(NSURL *)_url;
40 - (id)initWithUser:(NSString *)_user
41 password:(NSString *)_pwd
42 host:(NSString *)_host;
48 - (BOOL)createDirectoryAtPath:(NSString *)_path
49 attributes:(NSDictionary *)_attributes;
50 - (BOOL)changeCurrentDirectoryPath:(NSString *)_path;
51 - (NSString *)currentDirectoryPath;
52 - (NGImap4Folder *)currentFolder;
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
63 - (EODataSource *)dataSourceAtPath:(NSString *)_path;
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;
73 - (void)setSyncMode:(BOOL)_bool;
77 #endif /* __NGImap4FileManager_H__ */