-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStreamService.h
More file actions
23 lines (17 loc) · 791 Bytes
/
StreamService.h
File metadata and controls
23 lines (17 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// FileService.h
//
// Created by Jeremy Olmsted-Thompson on 1/20/12.
// Copyright (c) 2012 JOT. All rights reserved.
//
#import "DataService.h"
@interface StreamService : DataService {
long long _downloadedLength;
}
@property(nonatomic,retain) NSOutputStream *outputStream;
@property(nonatomic,copy) void (^progressHandler)(long long downloadedSize, long long expectedSize);
-(id)initWithOutputStream:(NSOutputStream*)stream;
-(id)initWithOutputStream:(NSOutputStream*)stream progressHandler:(void (^)(long long downloadedSize, long long expectedSize))progressHandler;
+(id)serviceWithOutputStream:(NSOutputStream*)stream;
+(id)serviceWithOutputStream:(NSOutputStream*)stream progressHandler:(void (^)(long long downloadedSize, long long expectedSize))progressHandler;
@end