-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
StreamModule.h
29 lines (25 loc) · 964 Bytes
/
StreamModule.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
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#import <Foundation/Foundation.h>
#import "TiModule.h"
#import "TiBuffer.h"
#import "TiStreamProxy.h"
#ifdef USE_TI_STREAM
@interface StreamModule : TiModule {
}
// Public API
@property (nonatomic,readonly) NSNumber* MODE_READ;
@property (nonatomic,readonly) NSNumber* MODE_WRITE;
@property (nonatomic,readonly) NSNumber* MODE_APPEND;
-(TiStreamProxy*)createStream:(id)args;
-(void)read:(id)args;
-(TiBuffer*)readAll:(id)args; // NOTE: Spec specifies -(void)readAll and -(TiBuffer)readAll; we just return 'nil' for the asynch
-(void)write:(id)args;
-(NSNumber*)writeStream:(id)args; // NOTE: Spec specifies -(void)writeStream and -(int)writeStream; we just return 'nil' for the asynch
-(void)pump:(id)args;
@end
#endif