Permalink
Browse files

Merge branch 'master' of github.com:Cocoanetics/DTFoundation

Conflicts:
	Core/DTFoundation.h
  • Loading branch information...
2 parents 5f332c6 + 99b6f4a commit 52d39c03f8a7d52817242a445f3f7db1ef83485f @odrobnik odrobnik committed Oct 4, 2012
@@ -16,6 +16,7 @@ typedef void (^DTActionSheetBlock)(void);
/**
Initializes the action sheet using the specified title.
+ @param title The title
*/
- (id)initWithTitle:(NSString *)title;
View
@@ -9,16 +9,51 @@
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
-
+/**
+ A managed object representing meta information on a cached file.
+
+ You usually never access these directly, they are used internally by <DTDownloadCache>
+ */
@interface DTCachedFile : NSManagedObject
+/**
+ Remote URL of the receiver
+ */
@property (nonatomic, retain) NSString *remoteURL;
+
+/**
+ The data in the file represented by the receiver
+ */
@property (nonatomic, retain) NSData *fileData;
+
+/**
+ The last time when the receiver was accessed
+ */
@property (nonatomic, retain) NSDate *lastAccessDate;
+
+/**
+ The last time the receiver was modified
+ */
@property (nonatomic, retain) NSDate *lastModifiedDate;
+
+/**
+ The time when the receiver is set to expire. Note: Not yet implemented.
+ */
@property (nonatomic, retain) NSDate *expirationDate;
+
+/**
+ The content MIME type of the receiver
+ */
@property (nonatomic, retain) NSString *contentType;
+
+/**
+ The file size in bytes of the receiver
+ */
@property (nonatomic, retain) NSNumber *fileSize;
+
+/**
+ The ETag of the receiver if the remote host did return one
+ */
@property (nonatomic, retain) NSString *entityTagIdentifier;
@end
View
@@ -159,6 +159,9 @@ typedef void (^DTDownloadCompletionHandler)(DTDownload *);
*/
- (void)cancel;
+/**
+ Determins if the download is currently in progress
+ */
- (BOOL)isLoading;
/**
@@ -23,6 +23,10 @@ typedef NSUInteger DTDownloadCacheOption;
typedef void (^DTDownloadCacheDataCompletionBlock)(NSData *);
typedef void (^DTDownloadCacheImageCompletionBlock)(UIImage *);
+/**
+ A global cache for <DTDownload> instances
+ */
+
@interface DTDownloadCache : NSObject <DTDownloadDelegate>
/**
@@ -1,18 +0,0 @@
-//
-// DTPageZoomScrollView.h
-// DTSmartPhotoView
-//
-// Created by Stefan Gugarel on 5/11/12.
-// Copyright (c) 2012 Stefan Gugarel. All rights reserved.
-//
-
-extern NSString * const DTPageZoomScrollViewDidZoomNotification;
-
-
-@interface DTPageZoomScrollView : UIScrollView <UIScrollViewDelegate>
-
-@property (nonatomic, strong) UIView *viewToZoom;
-
-- (void)setMaxMinZoomScalesForCurrentBounds;
-
-@end
Oops, something went wrong.

0 comments on commit 52d39c0

Please sign in to comment.