mirror of
https://github.com/jialexd/sdk-ameba-v4.0c_180328.git
synced 2026-07-02 09:35:47 +00:00
first add sdk
This commit is contained in:
commit
f91efd1250
3915 changed files with 1291882 additions and 0 deletions
32
tools/uart_adapter/app/iOS/uartadapter/ChatViewController.h
Executable file
32
tools/uart_adapter/app/iOS/uartadapter/ChatViewController.h
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
Copyright (C) 2015 Apple Inc. All Rights Reserved.
|
||||
See LICENSE.txt for this sample’s licensing information
|
||||
|
||||
Abstract:
|
||||
The secondary detailed view controller for this app.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface ChatViewController : UIViewController <NSStreamDelegate, NSNetServiceBrowserDelegate, NSNetServiceDelegate, UITextFieldDelegate>
|
||||
{
|
||||
NSNetServiceBrowser *_netServiceBrowser;
|
||||
NSMutableArray *_servicesArray;
|
||||
|
||||
NSMutableArray *messages;
|
||||
NSInputStream *inputStream;
|
||||
NSOutputStream *outputStream;
|
||||
}
|
||||
|
||||
@property (nonatomic, retain) NSNetService *selectedService;
|
||||
@property (nonatomic, retain) NSMutableArray *dataServicesArray;
|
||||
|
||||
|
||||
@property (nonatomic, retain) NSInputStream *inputStream;
|
||||
@property (nonatomic, retain) NSOutputStream *outputStream;
|
||||
@property (nonatomic, retain) NSMutableArray *messages;
|
||||
|
||||
- (IBAction) sendMessage;
|
||||
@property (nonatomic, retain) IBOutlet UITextView *chatMessageField;
|
||||
@property (nonatomic, retain) IBOutlet UITextField *inputMessageField;
|
||||
@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue