VLCHTTPFileDownloader.h 727 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // VLCHTTPFileDownloader.h
  3. // VLC for iOS
  4. //
  5. // Created by Felix Paul Kühne on 20.05.13.
  6. // Copyright (c) 2013 VideoLAN. All rights reserved.
  7. //
  8. // Refer to the COPYING file of the official project for license.
  9. //
  10. @protocol VLCHTTPFileDownloader <NSObject>
  11. @required
  12. - (void)downloadStarted;
  13. - (void)downloadEnded;
  14. @optional
  15. - (void)downloadFailedWithError:(NSError *)error;
  16. - (void)progressUpdatedTo:(CGFloat)percentage;
  17. @end
  18. @interface VLCHTTPFileDownloader : NSObject
  19. @property (readonly, nonatomic) NSString *userReadableDownloadName;
  20. @property (nonatomic, readonly) BOOL downloadInProgress;
  21. @property (nonatomic, retain) id delegate;
  22. - (void)cancelDownload;
  23. - (void)downloadFileFromURL:(NSURL *)url;
  24. @end