-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
TPClientController.h
46 lines (35 loc) · 1.23 KB
/
TPClientController.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
//
// TPClientController.h
// Teleport
//
// Created by JuL on Wed Dec 03 2003.
// Copyright (c) 2003-2005 abyssoft. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TPConnectionController.h"
#import "TPEventsController.h"
typedef NS_ENUM(NSInteger, TPClientState) {
TPClientIdleState,
TPClientConnectingState,
TPClientControllingState
} ;
@class TPRemoteHost;
@interface TPClientController : TPConnectionController <TPEventsListener>
{
TPClientState _state;
NSMutableDictionary * _hotBorders;
NSMutableDictionary * _hotKeys;
NSDictionary * _infoDict;
io_object_t _sleepNotifier;
io_connect_t _sleepService;
IONotificationPortRef _sleepNotifyPortRef;
}
+ (TPClientController*)defaultController;
- (void)updateTriggersAndShowVisualHint:(BOOL)showVisualHint;
- (void)requestStartControlOnHost:(TPRemoteHost*)remoteHost atLocation:(NSPoint)location withDraggingInfo:(id <NSDraggingInfo>)draggingInfo;
- (void)sendStartControlRequestForConnection:(TPNetworkConnection*)connection withInfoDict:(NSDictionary*)infoDict;
- (void)startControl;
- (void)requestedStopControlWithInfoDict:(NSDictionary*)infoDict;
- (void)stopControlWithDisconnect:(BOOL)disconnect;
@property (nonatomic, getter=isControlling, readonly) BOOL controlling;
@end