-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSImageCacheFactory.h
39 lines (30 loc) · 967 Bytes
/
CSImageCacheFactory.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
//
// ImageCacheFactory.h
// Calineczka
//
// Created by ciukes on 25/10/2009.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CSImageCache.h"
#import "CSImageCacheDomain.h"
enum {
ImageCacheDomainIdGeneral,
ImageCacheDomainIdBundle,
} typedef ImageCacheDomainId;
@interface CSImageCacheFactory : NSObject {
CSImageCache *_generalCache;
// ImageCache *_avatarCache;
CSImageCache *_bundleCache;
}
@property(nonatomic,retain) CSImageCache *_generalCache;
//@property(nonatomic,retain) ImageCache *_avatarCache;
@property(nonatomic,retain) CSImageCache *_bundleCache;
+ (CSImageCacheFactory*)sharedImageCache;
-(CSImageCache*)newCacheWithDomain:(id<CSImageCacheDomain>)domain;
-(CSImageCache*)getCacheWithDomainId:(ImageCacheDomainId)domainId;
-(void)removeAllImages;
-(void)removeAllImagesInMemory;
-(void)didReceiveMemoryWarning;
+(UIImage*)bundleImageNamed:(NSString*)bundleImageFileName;
@end