summaryrefslogtreecommitdiffstats
path: root/Classes/PhotoSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/PhotoSource.h')
-rw-r--r--Classes/PhotoSource.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/Classes/PhotoSource.h b/Classes/PhotoSource.h
new file mode 100644
index 0000000..9aadb93
--- /dev/null
+++ b/Classes/PhotoSource.h
@@ -0,0 +1,44 @@
+#import <Three20/Three20.h>
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+typedef enum {
+ PhotoSourceNormal = 0,
+ PhotoSourceDelayed = 1,
+ PhotoSourceVariableCount = 2,
+ PhotoSourceLoadError = 4,
+} PhotoSourceType;
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+@interface PhotoSource : TTURLRequestModel <TTPhotoSource> {
+ PhotoSourceType _type;
+ NSString* _title;
+ NSMutableArray* _photos;
+ NSArray* _tempPhotos;
+ NSTimer* _fakeLoadTimer;
+}
+
+- (id)initWithType:(PhotoSourceType)type title:(NSString*)title
+ photos:(NSArray*)photos photos2:(NSArray*)photos2;
+
+@end
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+@interface Photo : NSObject <TTPhoto> {
+ id<TTPhotoSource> _photoSource;
+ NSString* _thumbURL;
+ NSString* _smallURL;
+ NSString* _URL;
+ CGSize _size;
+ NSInteger _index;
+ NSString* _caption;
+}
+
+- (id)initWithURL:(NSString*)URL smallURL:(NSString*)smallURL size:(CGSize)size;
+
+- (id)initWithURL:(NSString*)URL smallURL:(NSString*)smallURL size:(CGSize)size
+ caption:(NSString*)caption;
+
+@end