-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
TPHostsManager.h
47 lines (35 loc) · 1.03 KB
/
TPHostsManager.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
//
// TPHostsManager.h
// teleport
//
// Created by JuL on 30/01/05.
// Copyright 2003-2005 abyssoft. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TPRemoteHost.h"
extern NSString * TPHostsKey;
extern NSString * TPHostsConfigurationDidChangeNotification;
@interface TPHostsManager : NSObject
{
NSMutableDictionary * _hosts;
NSMutableDictionary * _clientHosts;
TPRemoteHost * _pendingAuthenticationHost;
}
+ (TPHostsManager*)defaultManager;
/* Persistence */
- (void)loadHosts;
- (void)saveHosts;
/* Add/remove */
//- (void)addRemoteHost:(TPRemoteHost*)host;
//- (void)removeRemoteHost:(TPRemoteHost*)host;
- (void)addBonjourHost:(TPRemoteHost*)bonjourHost;
- (void)removeBonjourHost:(TPRemoteHost*)bonjourHost;
- (TPRemoteHost*)updatedHostFromData:(NSData*)hostData;
- (void)addClientHost:(TPRemoteHost*)clientHost;
/* Queries */
- (NSArray*)hostsWithState:(TPHostState)state;
- (TPRemoteHost*)hostWithIdentifier:(NSString*)identifier;
- (TPRemoteHost*)hostWithAddress:(NSString*)address;
/* Misc */
- (void)notifyChanges;
@end