-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScannerViewController.h
More file actions
37 lines (31 loc) · 1.79 KB
/
ScannerViewController.h
File metadata and controls
37 lines (31 loc) · 1.79 KB
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
32
33
34
35
36
37
//
// ScannerViewController.h
// nRF Toolbox
//
// Created by Aleksander Nowakowski on 16/12/13.
// Copyright (c) 2013 Nordic Semiconductor. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import "ScannerDelegate.h"
#import "CBConnector.h"
#import "PreferenceManager.h"
@interface ScannerViewController : UIViewController <CBCentralManagerDelegate, UITableViewDelegate, UITableViewDataSource, UARTPeripheralDelegate>
@property (retain, nonatomic) IBOutlet UITableView *devicesTable;
@property (retain, nonatomic) IBOutlet UIButton *closeButton;
@property (retain, nonatomic) id <ScannerDelegate> delegate;
@property (retain, nonatomic) CBUUID *filterUUID;
@property (retain, nonatomic) id<CBCentralManagerDelegate> m_parent;
@property (retain, nonatomic) CBConnector *m_connector;
@property (retain, nonatomic) PreferenceManager *m_preferences;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil parent:(id<CBCentralManagerDelegate>) parent connector:(CBConnector *) connector prefManager:(PreferenceManager *)preferences;
- (IBAction)didCancelClicked:(id)sender;
- (void) switchViews:(UIViewController *)parent_vc;
- (void) viewWillAppear:(BOOL)animated;
- (void) didReceiveData:(NSString *) string;
- (void) centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI;
- (void) centralManager:(CBCentralManager *)central didFailToConnectPeripheral:(CBPeripheral *)peripheral error:(NSError *)error;
- (void) centralManager:(CBCentralManager *)central didConnectPeripheral:(CBPeripheral *)peripheral;
- (void) centralManager:(CBCentralManager *)central didDisconnectPeripheral:(CBPeripheral *)peripheral error:(NSError *)error;
- (void) reset;
@end