~ubuntu-branches/ubuntu/dapper/pantomime/dapper

« back to all changes in this revision

Viewing changes to Headers/Pantomime/LocalStore.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-11-20 00:25:28 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041120002528-igjuwyao6gubpig1
Tags: 1.1.2-3
Build depend / depend on libgnustep-base-1.10-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
**  LocalStore.h
3
3
**
4
 
**  Copyright (c) 2001, 2002
 
4
**  Copyright (c) 2001, 2002, 2003
5
5
**
6
6
**  Author: Ludovic Marcotte <ludovic@Sophos.ca>
7
7
**
20
20
**  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
21
*/
22
22
 
23
 
#import <Pantomime/Store.h>
 
23
#ifndef _Pantomime_H_LocalStore
 
24
#define _Pantomime_H_LocalStore
 
25
 
 
26
#include <Pantomime/Store.h>
 
27
 
 
28
#import <Foundation/NSArray.h>
 
29
#import <Foundation/NSEnumerator.h>
 
30
#import <Foundation/NSFileManager.h>
 
31
#import <Foundation/NSObject.h>
 
32
#import <Foundation/NSString.h>
 
33
 
 
34
// Maibox formats supported
 
35
#define MAILBOX_FORMAT_MBOX     0
 
36
#define MAILBOX_FORMAT_MAILDIR  1
 
37
#define MAILBOX_FORMAT_FOLDER   2
24
38
 
25
39
@class Message;
26
40
@class LocalFolder;
28
42
@interface LocalStore : NSObject <Store>
29
43
{
30
44
  @private
31
 
    NSDirectoryEnumerator *folderEnumerator;
32
45
    NSString *path;
33
46
    NSMutableDictionary *folders;
34
47
    NSFileManager *fileManager;
 
48
    NSMutableArray *folderArray;
35
49
}
36
50
 
37
51
- (id) initWithPathToDirectory: (NSString *) thePath;
45
59
- (void) removeFolderFromOpenedFolders: (LocalFolder *) theFolder;
46
60
- (BOOL) folderForNameIsOpen: (NSString *) theName;
47
61
 
48
 
@end
 
62
- (void) enforceMode: (unsigned long) theMode
 
63
              atPath: (NSString *) thePath;
 
64
 
 
65
@end
 
66
 
 
67
 
 
68
//
 
69
// Private interface
 
70
//
 
71
@interface LocalStore (Private)
 
72
 
 
73
- (void) _enforceFileAttributes;
 
74
 
 
75
- (NSEnumerator *) _rebuildFolderEnumerator;
 
76
 
 
77
@end
 
78
 
 
79
#endif // _Pantomime_H_LocalStore