summaryrefslogtreecommitdiffstats
path: root/Liaison/Downloader.h
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-14 21:45:08 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-14 21:45:08 -0400
commit17349a5e426dc7acf1216a3767a22f69974cbca0 (patch)
tree20029d02f07ab6257cccec36d34fb312f796e1d1 /Liaison/Downloader.h
downloadliaison-17349a5e426dc7acf1216a3767a22f69974cbca0.tar.gz
liaison-17349a5e426dc7acf1216a3767a22f69974cbca0.zip
Initial commit.
Diffstat (limited to 'Liaison/Downloader.h')
-rw-r--r--Liaison/Downloader.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/Liaison/Downloader.h b/Liaison/Downloader.h
new file mode 100644
index 0000000..efe7f97
--- /dev/null
+++ b/Liaison/Downloader.h
@@ -0,0 +1,63 @@
+//
+// Downloader.h
+// Liaison
+//
+// Created by Brian Cully on Fri Jun 06 2003.
+// Copyright (c) 2003 Brian Cully. All rights reserved.
+//
+
+@class DownloadStatusView;
+
+@interface Downloader : NSObject
+{
+ DownloadStatusView *theStatusView;
+ LiFileHandle *theRemoteFileHandle;
+ NSDictionary *theFileAttributes;
+ NSFileHandle *theSocket;
+ NSFileHandle *theLocalFile;
+ NSString *theLocalFilePath;
+ void *theCallbackContext;
+ id theCallbackTarget;
+ SEL theCallbackSelector;
+
+ unsigned long theBytesInLocalFile;
+}
+- (id)initWithSocket: (NSFileHandle *)aSocket
+ target: (id)aTarget
+ selector: (SEL)aSelector
+ context: (void *)someContext;
+
+- (void)downloadFileHandle: (LiFileHandle *)aFileHandle;
+@property (retain,getter=localFilePath) NSString *theLocalFilePath;
+@property (getter=callbackContext,setter=setCallbackContext:) void *theCallbackContext;
+@property (retain,getter=statusView) DownloadStatusView *theStatusView;
+@property (getter=callbackSelector,setter=setCallbackSelector:) SEL theCallbackSelector;
+@property (retain,getter=socket) NSFileHandle *theSocket;
+@property (retain,getter=callbackTarget) id theCallbackTarget;
+@property (retain,getter=fileAttributes) NSDictionary *theFileAttributes;
+@property (retain,getter=remoteFileHandle) LiFileHandle *theRemoteFileHandle;
+@property (retain,getter=localFile) NSFileHandle *theLocalFile;
+@property unsigned long theBytesInLocalFile;
+@end
+
+@interface Downloader (Accessors)
+- (LiFileHandle *)remoteFileHandle;
+- (void)setRemoteFileHandle: (LiFileHandle *)aFileHandle;
+- (NSFileHandle *)localFile;
+- (void)setLocalFile: (NSFileHandle *)aFile;
+- (NSString *)localFilePath;
+- (void)setLocalFilePath: (NSString *)aPath;
+- (DownloadStatusView *)statusView;
+- (void)setStatusView: (DownloadStatusView *)aStatusView;
+
+- (NSDictionary *)fileAttributes;
+- (void)setFileAttributes: (NSDictionary *)someAttributes;
+- (NSFileHandle *)socket;
+- (void)setSocket: (NSFileHandle *)aSocket;
+- (id)callbackTarget;
+- (void)setCallbackTarget: (id)aTarget;
+- (SEL)callbackSelector;
+- (void)setCallbackSelector: (SEL)aSelector;
+- (void *)callbackContext;
+- (void)setCallbackContext: (void *)someContext;
+@end \ No newline at end of file