sdk-ameba-v4.0c_180328/tools/uart_adapter/app/iOS/uartadapter/ChatViewController.h

33 lines
1,007 B
C
Raw Normal View History

2019-04-02 08:34:25 +00:00
/*
Copyright (C) 2015 Apple Inc. All Rights Reserved.
See LICENSE.txt for this samples 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