Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 59 lines (42 sloc) 1.748 kb
c5cfe65 @ttscoff Slightly better way to handle adding scroll reset script.
authored
1 /* URLGetter */
2
3 /*Copyright (c) 2010, Zachary Schneirov. All rights reserved.
4 Redistribution and use in source and binary forms, with or without modification, are permitted
5 provided that the following conditions are met:
6 - Redistributions of source code must retain the above copyright notice, this list of conditions
7 and the following disclaimer.
8 - Redistributions in binary form must reproduce the above copyright notice, this list of
9 conditions and the following disclaimer in the documentation and/or other materials provided with
10 the distribution.
11 - Neither the name of Notational Velocity nor the names of its contributors may be used to endorse
12 or promote products derived from this software without specific prior written permission. */
13
14
15 #import <Cocoa/Cocoa.h>
16
17 @interface URLGetter : NSObject
18 {
19 IBOutlet NSButton *cancelButton;
20 IBOutlet NSTextField *objectURLStatus;
21 IBOutlet NSProgressIndicator *progress;
22 IBOutlet NSTextField *progressStatus;
23 IBOutlet NSPanel *window;
24
25 NSURL *url;
26 NSURLDownload *downloader;
27 NSString *downloadPath, *tempDirectory;
28
29 id userData;
30
31 id delegate;
32
b637fb7 @ttscoff Jumping fork ahead to nvALT2 HEAD
authored
33 BOOL isIndicating, isImporting;
c5cfe65 @ttscoff Slightly better way to handle adding scroll reset script.
authored
34
35 long long totalReceivedByteCount, maxExpectedByteCount;
36 }
37
38 - (IBAction)cancelDownload:(id)sender;
39 - (id)initWithURL:(NSURL*)aUrl delegate:(id)aDelegate userData:(id)someObj;
40
41 - (NSURL*)url;
42 - (id)userData;
43
44 - (id)delegate;
45 - (void)setDelegate:(id)aDelegate;
46
47 - (void)stopProgressIndication;
48 - (void)startProgressIndication:(id)sender;
49 - (void)updateProgress;
50 - (NSString*)downloadPath;
51
52 - (void)endDownloadWithPath:(NSString*)path;
53
54 @end
55
56 @interface URLGetter (Delegate)
57 - (void)URLGetter:(URLGetter*)getter returnedDownloadedFile:(NSString*)filename;
58 @end
Something went wrong with that request. Please try again.