-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathripURL.h
40 lines (30 loc) · 883 Bytes
/
ripURL.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// ripURL.h
// Seas0nPass
//
// Created by Kevin Bradley on 3/9/07.
// Copyright 2007 nito, LLC. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@protocol ripURLDelegate
- (void)downloadFinished:(NSString *)downloadFile;
- (void)downloadFailed:(NSString *)downloadFile;
- (void)setDownloadProgress:(double)theProgress;
@end
@interface ripURL : NSObject {
NSURLDownload *urlDownload;
NSURLResponse *myResponse;
id handler;
float bytesReceived;
NSString *downloadLocation;
long long updateFrequency;
long long freq;
}
@property (nonatomic, retain) NSString *downloadLocation;
@property (nonatomic, assign) id handler;
- (void)downloadFile:(NSString *)theFile;
- (long long)updateFrequency;
- (void)setUpdateFrequency:(long long)newUpdateFrequency;
- (void)setDownloadResponse:(NSURLResponse *)response;
- (void)cancel;
@end