forked from jakemarsh/JMImageCache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJMImageCache.h
More file actions
36 lines (24 loc) · 792 Bytes
/
JMImageCache.h
File metadata and controls
36 lines (24 loc) · 792 Bytes
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
//
// JMImageCache.h
// JMCache
//
// Created by Jake Marsh on 2/7/11.
// Copyright 2011 Rubber Duck Software. All rights reserved.
//
@class JMImageCache;
@protocol JMImageCacheDelegate <NSObject>
@optional
- (void) cache:(JMImageCache *)c didDownloadImage:(UIImage *)i forURL:(NSString *)url;
@end
@interface JMImageCache : NSCache {
@private
NSOperationQueue *_diskOperationQueue;
}
+ (JMImageCache *) sharedCache;
- (UIImage *) imageForURL:(NSString *)url delegate:(id<JMImageCacheDelegate>)d;
- (UIImage *) imageFromDiskForURL:(NSString *)url;
- (void) setImage:(UIImage *)i forURL:(NSString *)url;
- (void) removeImageForURL:(NSString *)url;
- (void) writeData:(NSData*)data toPath:(NSString *)path;
- (void) performDiskWriteOperation:(NSInvocation *)invoction;
@end