forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TerminalFile.h
31 lines (23 loc) · 840 Bytes
/
TerminalFile.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
//
// TerminalFile.h
// iTerm
//
// Created by George Nachman on 1/5/14.
//
//
#import "TransferrableFile.h"
// Posted when the transfer wants to stop.
NSString *const kTerminalFileShouldStopNotification;
// A file downloaded from the terminal via an escape code.
@interface TerminalFile : TransferrableFile
@property(nonatomic, copy) NSString *localPath;
// You must call -download after initWithName:size: to enter starting status.
// A nil name opens a save panel.
// A size of -1 means the size is unknown.
- (id)initWithName:(NSString *)name size:(int)size;
// Appends data to a file in transferring status. Enters transferring status.
- (void)appendData:(NSString *)data;
// Marks the end of data, at which time the file is decoded and saved. If -stop
// was called, the cancelled state is entered.
- (void)endOfData;
@end