-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
TPConnectionController.h
51 lines (38 loc) · 1.63 KB
/
TPConnectionController.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
//
// TPConnectionController.h
// teleport
//
// Created by JuL on Thu Jan 08 2004.
// Copyright (c) 2003-2005 abyssoft. All rights reserved.
//
#import <Foundation/Foundation.h>
#define DISCONNECT_WHEN_STOP_CONTROL 0
@class TPNetworkConnection, TPMessage, TPEventsController, TPHotBorder, TPRemoteHost;
extern NSString * TPScreenIndexKey;
extern NSString * TPScreenPlacementKey;
extern NSString * TPMousePositionKey;
extern NSString * TPSwitchOptionsKey;
extern NSString * TPDraggedPathsKey;
extern NSString * TPDragImageKey;
extern NSString * TPDragImageLocationKey;
@interface TPConnectionController : NSObject
{
IBOutlet id delegate;
TPNetworkConnection * _currentConnection;
TPEventsController * _eventsController;
}
@property (nonatomic, strong) TPNetworkConnection *currentConnection;
- (void)updateEventsController;
@property (nonatomic, readonly, strong) TPEventsController *eventsController;
@property (nonatomic, readonly, strong) TPHotBorder *currentHotBorder;
- (void)setupHotBorder:(TPHotBorder*)hotBorder forHost:(TPRemoteHost*)host;
- (void)takeDownHotBorder:(TPHotBorder*)hotBorder;
- (BOOL)hotBorder:(TPHotBorder*)hotBorder firedAtLocation:(NSPoint)location withDraggingInfo:(id <NSDraggingInfo>)draggingInfo;
- (void)playSwitchSound;
- (void)stopControl;
- (void)stopControlWithDisconnect:(BOOL)disconnect;
- (id)optionForRemoteHost:(TPRemoteHost*)remoteHost key:(NSString*)key;
- (void)addDraggingInfo:(id<NSDraggingInfo>)draggingInfo toInfoDict:(NSMutableDictionary*)infoDict;
- (void)beginTransfersWithInfoDict:(NSDictionary*)infoDict;
- (void)connection:(TPNetworkConnection*)connection receivedMessage:(TPMessage*)message;
@end