-
Notifications
You must be signed in to change notification settings - Fork 11
/
BrowserViewController.h
58 lines (48 loc) · 1.57 KB
/
BrowserViewController.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#import <UIKit/UIKit.h>
@class BrowserViewController;
#include <map>
#include <netinet/in.h>
#include <string>
#include <vector>
struct BSRemoteGameEntry {
CFTimeInterval lastTime;
struct sockaddr_storage addr;
int addrSize;
};
@protocol BrowserViewControllerDelegate <NSObject>
@required
// This method will be invoked when the user selects one of the service
// instances from the list. The ref parameter will be the selected (already
// resolved) instance or nil if the user taps the 'Cancel' button (if shown).
- (void)browserViewController:(BrowserViewController *)bvc
didSelectAddress:(struct sockaddr*)addr
withSize:(int)size;
@end
@interface BrowserViewController
: UITableViewController <UITextFieldDelegate> {
@private
id<BrowserViewControllerDelegate> _delegate;
NSString *_searchingForServicesString;
NSTimer *_timer;
NSTimer *_titleTimer;
BOOL _needsActivityIndicator;
BOOL _initialWaitOver;
BOOL _doingNameDialog;
int _dotCount;
CFSocketRef _scanSocket4;
int _scanSocket4Raw;
int _scanSocket6Interface;
CFSocketRef _scanSocket6;
int _scanSocket6Raw;
std::map<std::string, BSRemoteGameEntry> _games;
}
@property(nonatomic, assign) id<BrowserViewControllerDelegate> delegate;
@property(nonatomic, copy) NSString *searchingForServicesString;
@property(nonatomic, retain) UIImageView *tableBG;
@property(nonatomic, retain) UIImageView *logo;
@property(nonatomic, retain) UIButton *nameButton;
@property(nonatomic, retain) UIButton *manualButton;
- (id)initWithTitle:(NSString *)title;
- (void)stop;
- (void)start;
@end