forked from johndbritton/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TPMainController.h
42 lines (32 loc) · 904 Bytes
/
TPMainController.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
//
// TPMainController.h
// Teleport
//
// Created by JuL on Thu Dec 25 2003.
// Copyright (c) 2003-2005 abyssoft. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef uint32_t CGSUInt32;
struct CPSProcessSerNum
{
CGSUInt32 hi;
CGSUInt32 lo;
};
typedef struct CPSProcessSerNum CPSProcessSerNum;
@class TPNetworkConfigurationWatcher;
@interface TPMainController : NSObject
{
CPSProcessSerNum _frontProcessNum;
TPNetworkConfigurationWatcher * _networkConfigurationWatcher;
}
+ (TPMainController*)sharedController;
- (BOOL)canBeControlledByHostWithIdentifier:(NSString*)identifier;
- (BOOL)canControlHostWithIdentifier:(NSString*)identifier;
/* UI */
- (void)goFrontmost;
- (void)leaveFrontmost;
- (int)presentAlert:(NSAlert*)alert;
/* Version checking */
- (void)checkVersionFromNotification:(NSNotification*)notification;
- (void)checkVersionsAndConfirm:(BOOL)confirm;
@end