-
Notifications
You must be signed in to change notification settings - Fork 6
/
XeeDirectorySource.h
86 lines (64 loc) · 1.91 KB
/
XeeDirectorySource.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#import "XeeFileSource.h"
#import "XeeKQueue.h"
@class XeeDirectoryEntry;
@interface XeeDirectorySource:XeeFileSource
{
XeeFSRef *dirref,*imgref;
int dirfd,filefd;
BOOL scheduledimagerename,scheduledimagerefresh,scheduleddirrefresh;
XeeDirectoryEntry *first;
}
-(id)initWithDirectory:(XeeFSRef *)directory;
-(id)initWithRef:(XeeFSRef *)ref;
-(id)initWithImage:(XeeImage *)image;
-(id)initWithRef:(XeeFSRef *)ref image:(XeeImage *)image;
-(void)dealloc;
-(NSString *)representedFilename;
-(BOOL)canBrowse;
-(BOOL)canSort;
-(BOOL)canRenameCurrentImage;
-(BOOL)canDeleteCurrentImage;
-(BOOL)canCopyCurrentImage;
-(BOOL)canMoveCurrentImage;
-(BOOL)canOpenCurrentImage;
-(BOOL)canSaveCurrentImage;
-(NSError *)renameCurrentImageTo:(NSString *)newname;
-(NSError *)deleteCurrentImage;
-(NSError *)moveCurrentImageTo:(NSString *)destination;
-(void)beginSavingImage:(XeeImage *)image;
-(void)endSavingImage:(XeeImage *)image;
-(void)setCurrentEntry:(XeeFileEntry *)entry;
-(void)fileChanged:(XeeKEvent *)event;
-(void)directoryChanged:(XeeKEvent *)event;
-(void)scheduleImageRename;
-(void)scheduleImageRefresh;
-(void)scheduleDirectoryRefresh;
-(void)performScheduledTasks;
-(void)removeCurrentEntryAndUpdate;
-(void)removeAllEntriesAndUpdate;
-(void)scanDirectory;
-(void)readDirectory;
@end
@interface XeeDirectoryEntry:XeeFileEntry
{
XeeFSRef *ref;
uint64_t size;
double time;
}
+(XeeDirectoryEntry *)entryWithRef:(XeeFSRef *)ref;
+(XeeDirectoryEntry *)entryWithRef:(XeeFSRef *)ref image:(XeeImage *)image;
-(id)initWithRef:(XeeFSRef *)fsref;
-(id)initWithRef:(XeeFSRef *)fsref image:(XeeImage *)image;
-(id)initAsCopyOf:(XeeDirectoryEntry *)other;
-(void)dealloc;
-(void)prepareForSortingBy:(int)sortorder;
-(NSString *)descriptiveName;
-(XeeFSRef *)ref;
-(NSString *)path;
-(NSString *)filename;
-(uint64_t)size;
-(double)time;
-(BOOL)matchesObject:(id)obj;
-(BOOL)isEqual:(XeeDirectoryEntry *)other;
-(unsigned long)hash;
@end