/Download.h

http://get-iplayer-automator.googlecode.com/ · C Header · 68 lines · 44 code · 13 blank · 11 comment · 0 complexity · 951bfc71f5228408ba9a59a228a0d6e1 MD5 · raw file

  1. //
  2. // Download.h
  3. //
  4. //
  5. // Created by Thomas Willson on 12/16/11.
  6. // Copyright 2011 __MyCompanyName__. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #import "Programme.h"
  10. @interface Download : NSObject {
  11. NSNotificationCenter *nc;
  12. Programme *show;
  13. double lastDownloaded;
  14. NSDate *lastDate;
  15. NSMutableArray *rateEntries;
  16. double oldRateAverage;
  17. int outOfRange;
  18. NSMutableString *log;
  19. //RTMPDump Task
  20. NSTask *task;
  21. NSPipe *pipe;
  22. NSPipe *errorPipe;
  23. NSFileHandle *fh;
  24. NSFileHandle *errorFh;
  25. NSMutableString *errorCache;
  26. NSTimer *processErrorCache;
  27. //ffmpeg Conversion
  28. NSTask *ffTask;
  29. NSPipe *ffPipe;
  30. NSPipe *ffErrorPipe;
  31. NSFileHandle *ffFh;
  32. NSFileHandle *ffErrorFh;
  33. //AtomicParsley Tagging
  34. NSTask *apTask;
  35. NSPipe *apPipe;
  36. NSFileHandle *apFh;
  37. //Download Information
  38. NSString *subtitleURL;
  39. NSString *thumbnailURL;
  40. NSString *downloadPath;
  41. NSArray *formatList;
  42. BOOL running;
  43. NSInteger attemptNumber;
  44. }
  45. - (void)setCurrentProgress:(NSString *)string;
  46. - (void)setPercentage:(double)d;
  47. - (void)cancelDownload:(id)sender;
  48. - (void)addToLog:(NSString *)logMessage noTag:(BOOL)b;
  49. - (void)addToLog:(NSString *)logMessage;
  50. - (void)processFLVStreamerMessage:(NSString *)message;
  51. - (void)launchRTMPDumpWithArgs:(NSMutableArray *)args;
  52. - (void)processGetiPlayerOutput:(NSString *)outp;
  53. - (void)launchMetaRequest;
  54. @property (readonly) Programme *show;
  55. @end