From 17349a5e426dc7acf1216a3767a22f69974cbca0 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 14 Apr 2008 21:45:08 -0400 Subject: Initial commit. --- Liaison/DownloadManager.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Liaison/DownloadManager.h (limited to 'Liaison/DownloadManager.h') diff --git a/Liaison/DownloadManager.h b/Liaison/DownloadManager.h new file mode 100644 index 0000000..42f9ee6 --- /dev/null +++ b/Liaison/DownloadManager.h @@ -0,0 +1,36 @@ +// +// DownloadManager.h +// Liaison +// +// Created by Brian Cully on Wed Jun 04 2003. +// Copyright (c) 2003 Brian Cully. All rights reserved. +// + +@interface DownloadManager : NSObject +{ + NSMutableDictionary *theDownloads; +} +// The default download manager. ++ (DownloadManager *)defaultManager; + +// Tell the manager to download a file. When it's finished, it'll +// call the selector, if it's there, and if context is supplied, +// it'll be passed on to the selector as well. +// The selector should have the following signature: +// - (void)fileHandleFinishedDownloading: (LiFileHandle *)aFileHandle +// context: (void *)someContext +// errorString: (NSString *)anError +// If errorString isn't nil, then the file did not finish downloading +// properly, either by user action or by some other error. +- (void)downloadFileHandle: (LiFileHandle *)aFileHandle + fromSocket: (NSFileHandle *)aSocket + target: (id)anObject + didFinishSelector: (SEL)aSelector + withContext: (void *)someContext; +@property (retain,getter=downloads) NSMutableDictionary *theDownloads; +@end + +@interface DownloadManager (Accessors) +- (NSMutableDictionary *)downloads; +- (void)setDownloads: (NSMutableDictionary *)someDownloads; +@end \ No newline at end of file -- cgit v1.2.3