diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-20 14:39:20 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-20 14:39:20 -0400 |
commit | 9d52266f823daf5cb83e3eebe1b9f57594bc9d4a (patch) | |
tree | 38402f7ddbb0f3a40ebc7c88d673756701f47510 /Classes/HJMOPolicy.h | |
download | piccast-app-9d52266f823daf5cb83e3eebe1b9f57594bc9d4a.tar.gz piccast-app-9d52266f823daf5cb83e3eebe1b9f57594bc9d4a.zip |
first commit
Diffstat (limited to 'Classes/HJMOPolicy.h')
-rwxr-xr-x | Classes/HJMOPolicy.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Classes/HJMOPolicy.h b/Classes/HJMOPolicy.h new file mode 100755 index 0000000..11fdbab --- /dev/null +++ b/Classes/HJMOPolicy.h @@ -0,0 +1,45 @@ +// +// HJManagedObjPolicy.h +// hjlib +// +// Copyright Hunter and Johnson 2009, 2010, 2011 +// HJCache may be used freely in any iOS or Mac application free or commercial. +// May be redistributed as source code only if all the original files are included. +// See http://www.markj.net/hjcache-iphone-image-cache/ + +#import <Foundation/Foundation.h> + +/* + The policy has some settings for customizing how the object manger works. + Its optional, as the object manager has a default policy + */ + +@interface HJMOPolicy : NSObject { + + NSTimeInterval urlTimeoutTime; + + //if YES, then when accessing a managed object that has a cahce file, the date on that + //cache file is updated, so that the file cache can trim its size by deleting only + //objects that have not been accessed recently + BOOL readsUpdateFileDate; + + // TODO: make object manager use these parts of the policy + //BOOL loadToFile; + //BOOL cacheInMemory; + //BOOL asyncStartLoad; + //BOOL asyncIsReadyIfCached; +} + +@property NSTimeInterval urlTimeoutTime; +@property BOOL readsUpdateFileDate; + + +//@property BOOL loadToFile; +//@property BOOL cacheInMemory; +//@property BOOL asyncStartLoad; +//@property BOOL asyncIsReadyIfCached; + ++(HJMOPolicy*) smallImgFastScrollLRUCachePolicy; + + +@end |