sdk-ameba-v4.0c_180328/tools/uart_adapter/app/iOS/uartadapter/ChatViewController.h
2019-04-02 16:34:25 +08:00

32 lines
1,007 B
Objective-C
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
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