/Download.h
http://get-iplayer-automator.googlecode.com/ · C Header · 68 lines · 44 code · 13 blank · 11 comment · 0 complexity · 951bfc71f5228408ba9a59a228a0d6e1 MD5 · raw file
- //
- // Download.h
- //
- //
- // Created by Thomas Willson on 12/16/11.
- // Copyright 2011 __MyCompanyName__. All rights reserved.
- //
- #import <Cocoa/Cocoa.h>
- #import "Programme.h"
- @interface Download : NSObject {
- NSNotificationCenter *nc;
-
- Programme *show;
-
- double lastDownloaded;
- NSDate *lastDate;
- NSMutableArray *rateEntries;
- double oldRateAverage;
- int outOfRange;
- NSMutableString *log;
-
- //RTMPDump Task
- NSTask *task;
- NSPipe *pipe;
- NSPipe *errorPipe;
- NSFileHandle *fh;
- NSFileHandle *errorFh;
- NSMutableString *errorCache;
- NSTimer *processErrorCache;
-
- //ffmpeg Conversion
- NSTask *ffTask;
- NSPipe *ffPipe;
- NSPipe *ffErrorPipe;
- NSFileHandle *ffFh;
- NSFileHandle *ffErrorFh;
-
- //AtomicParsley Tagging
- NSTask *apTask;
- NSPipe *apPipe;
- NSFileHandle *apFh;
-
- //Download Information
- NSString *subtitleURL;
- NSString *thumbnailURL;
- NSString *downloadPath;
-
- NSArray *formatList;
- BOOL running;
-
- NSInteger attemptNumber;
- }
- - (void)setCurrentProgress:(NSString *)string;
- - (void)setPercentage:(double)d;
- - (void)cancelDownload:(id)sender;
- - (void)addToLog:(NSString *)logMessage noTag:(BOOL)b;
- - (void)addToLog:(NSString *)logMessage;
- - (void)processFLVStreamerMessage:(NSString *)message;
- - (void)launchRTMPDumpWithArgs:(NSMutableArray *)args;
- - (void)processGetiPlayerOutput:(NSString *)outp;
- - (void)launchMetaRequest;
- @property (readonly) Programme *show;
- @end