-
Notifications
You must be signed in to change notification settings - Fork 1
/
DUHost.h
64 lines (52 loc) · 1.48 KB
/
DUHost.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
59
60
61
62
63
64
//
// DUHost.h
// DNSUpdate2
//
// Created by jalon on Wed Apr 04 2001.
// Copyright (c) 2001-2003 Julien Jalon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DUProtocols.h"
@class DUUser;
@class DUInterface;
@interface DUHost : NSObject <DUIdentify> {
DUUser *user;
NSString *hostname;
NSMutableDictionary *hostProperties;
NSString *registeredAddress;
DUInterface *interface;
NSDate *lastUpdate;
BOOL active;
NSString *hostStatus;
BOOL dirty;
BOOL isUpdating;
}
- initWithName:(NSString *)theName;
- (void)setUser:(DUUser *)theUser;
- (DUUser *)user;
- (void)setName:(NSString *)theName;
- (NSString *)getName;
- (void)resetAddress;
- (NSDate *)lastUpdate;
- (void)setLastUpdate:(NSDate *)theDate;
- (void)updateAddressTo:(NSString *)newAddress;
- (NSString *)getAddress;
- (void)setAddress:(NSString *)theAddress;
- hostPropertyForKey:(NSString *)theKey;
- (void)setHostProperty:object forKey:(NSString *)theKey internalProperty:(BOOL)flag;
- (void)removeHostPropertyForKey:(NSString *)theKey;
- (NSArray *)propertiesKeys;
- (NSDictionary *)hostProperties;
- (void)setHostProperties:(NSDictionary *)theProperties;
- (DUInterface *)interface;
- (void)setInterface:(DUInterface *)theInterface;
- (BOOL)isDirty;
- (void)setDirty:(BOOL)flag;
- (BOOL)isUpdating;
- (void)setUpdating:(BOOL)flag;
- (BOOL)isActive;
- (void)setActive:(BOOL)flag;
- (void)setStatus:(NSString *)theStatus;
- (NSString *)hostStatus;
- (NSString *)realStatus;
@end