2015-12-01 20:31:24 -08:00
|
|
|
//
|
|
|
|
|
// TemporaryHost.h
|
|
|
|
|
// Moonlight
|
|
|
|
|
//
|
|
|
|
|
// Created by Cameron Gutman on 12/1/15.
|
|
|
|
|
// Copyright © 2015 Moonlight Stream. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "Utils.h"
|
2018-05-28 12:40:15 -07:00
|
|
|
#import "Host+CoreDataClass.h"
|
2015-12-01 20:31:24 -08:00
|
|
|
|
|
|
|
|
@interface TemporaryHost : NSObject
|
|
|
|
|
|
2019-11-06 21:51:23 -08:00
|
|
|
@property (atomic) State state;
|
|
|
|
|
@property (atomic) PairState pairState;
|
|
|
|
|
@property (atomic, nullable, retain) NSString * activeAddress;
|
|
|
|
|
@property (atomic, nullable, retain) NSString * currentGame;
|
2023-02-02 21:54:52 -06:00
|
|
|
@property (atomic) unsigned short httpsPort;
|
2023-03-05 14:19:32 -06:00
|
|
|
@property (atomic) BOOL isNvidiaServerSoftware;
|
2019-11-06 21:51:23 -08:00
|
|
|
|
|
|
|
|
@property (atomic, nullable, retain) NSData *serverCert;
|
|
|
|
|
@property (atomic, nullable, retain) NSString *address;
|
|
|
|
|
@property (atomic, nullable, retain) NSString *externalAddress;
|
|
|
|
|
@property (atomic, nullable, retain) NSString *localAddress;
|
|
|
|
|
@property (atomic, nullable, retain) NSString *ipv6Address;
|
|
|
|
|
@property (atomic, nullable, retain) NSString *mac;
|
|
|
|
|
@property (atomic) int serverCodecModeSupport;
|
2018-12-22 00:05:48 -08:00
|
|
|
|
2015-12-01 20:36:08 -08:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
2019-11-06 21:51:23 -08:00
|
|
|
@property (atomic, retain) NSString *name;
|
|
|
|
|
@property (atomic, retain) NSString *uuid;
|
|
|
|
|
@property (atomic, retain) NSSet *appList;
|
2015-12-02 00:25:38 -08:00
|
|
|
|
|
|
|
|
- (id) initFromHost:(Host*)host;
|
|
|
|
|
|
2015-12-01 20:36:08 -08:00
|
|
|
- (NSComparisonResult)compareName:(TemporaryHost *)other;
|
|
|
|
|
|
2016-01-21 14:03:07 -05:00
|
|
|
- (void) propagateChangesToParent:(Host*)host;
|
2015-12-02 00:25:38 -08:00
|
|
|
|
2015-12-01 20:36:08 -08:00
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
|
|
2015-12-01 20:31:24 -08:00
|
|
|
@end
|