|
| 1 | +// |
| 2 | +// Copyright © 2019 Halts. All rights reserved. |
| 3 | +// |
| 4 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +// you may not use this file except in compliance with the License. |
| 6 | +// You may obtain a copy of the License at |
| 7 | +// |
| 8 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +// |
| 10 | +// Unless required by applicable law or agreed to in writing, software |
| 11 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +// See the License for the specific language governing permissions and |
| 14 | +// limitations under the License. |
| 15 | +// |
| 16 | + |
| 17 | +#import <Foundation/Foundation.h> |
| 18 | + |
| 19 | +NS_ASSUME_NONNULL_BEGIN |
| 20 | + |
| 21 | +@interface UTMNewDrive : NSObject |
| 22 | + |
| 23 | +@property (nonatomic, assign) BOOL valid; |
| 24 | +@property (nonatomic, nullable, strong) NSNumber *sizeMB; |
| 25 | +@property (nonatomic, assign) BOOL isQcow2; |
| 26 | + |
| 27 | +@end |
| 28 | + |
| 29 | +@interface UTMConfiguration : NSObject |
| 30 | + |
| 31 | +@property (nonatomic, weak, readonly) NSDictionary *dictRepresentation; |
| 32 | + |
| 33 | ++ (NSArray<NSString *>*)supportedArchitecturesPretty; |
| 34 | ++ (NSArray<NSString *>*)supportedArchitectures; |
| 35 | ++ (NSArray<NSString *>*)supportedBootDevices; |
| 36 | ++ (NSArray<NSString *>*)supportedTargetsForArchitecture:(NSString *)architecture; |
| 37 | ++ (NSArray<NSString *>*)supportedResolutions; |
| 38 | ++ (NSArray<NSString *>*)supportedDriveInterfaces; |
| 39 | + |
| 40 | +@property (nonatomic, nullable, strong) NSString *name; |
| 41 | +@property (nonatomic, nullable, strong) NSString *changeName; |
| 42 | + |
| 43 | +@property (nonatomic, nullable, strong) NSString *systemArchitecture; |
| 44 | +@property (nonatomic, nullable, strong) NSNumber *systemMemory; |
| 45 | +@property (nonatomic, nullable, strong) NSNumber *systemCPUCount; |
| 46 | +@property (nonatomic, nullable, strong) NSString *systemTarget; |
| 47 | +@property (nonatomic, nullable, strong) NSString *systemBootDevice; |
| 48 | +@property (nonatomic, nullable, strong) NSString *systemAddArgs; |
| 49 | + |
| 50 | +@property (nonatomic, assign) BOOL displayConsoleOnly; |
| 51 | +@property (nonatomic, assign) BOOL displayFixedResolution; |
| 52 | +@property (nonatomic, nullable, strong) NSNumber *displayFixedResolutionWidth; |
| 53 | +@property (nonatomic, nullable, strong) NSNumber *displayFixedResolutionHeight; |
| 54 | +@property (nonatomic, assign) BOOL displayZoomScale; |
| 55 | +@property (nonatomic, assign) BOOL displayZoomLetterBox; |
| 56 | + |
| 57 | +@property (nonatomic, assign) BOOL inputTouchscreenMode; |
| 58 | +@property (nonatomic, assign) BOOL inputDirect; |
| 59 | + |
| 60 | +@property (nonatomic, assign) BOOL networkEnabled; |
| 61 | +@property (nonatomic, assign) BOOL networkLocalhostOnly; |
| 62 | +@property (nonatomic, nullable, strong) NSString *networkIPSubnet; |
| 63 | +@property (nonatomic, nullable, strong) NSString *networkDHCPStart; |
| 64 | + |
| 65 | +@property (nonatomic, assign) BOOL printEnabled; |
| 66 | + |
| 67 | +@property (nonatomic, assign) BOOL soundEnabled; |
| 68 | + |
| 69 | +@property (nonatomic, assign) BOOL sharingClipboardEnabled; |
| 70 | + |
| 71 | +- (id)initWithDefaults; |
| 72 | +- (NSUInteger)countDrives; |
| 73 | +- (NSUInteger)newDefaultDrive; |
| 74 | +- (nullable NSString *)driveImagePathForIndex:(NSUInteger)index; |
| 75 | +- (void)setImagePath:(NSString *)path forIndex:(NSUInteger)index; |
| 76 | +- (nullable NSString *)driveInterfaceTypeForIndex:(NSUInteger)index; |
| 77 | +- (void)setDriveInterfaceType:(NSString *)interfaceType forIndex:(NSUInteger)index; |
| 78 | +- (BOOL)driveIsCdromForIndex:(NSUInteger)index; |
| 79 | +- (void)setDriveIsCdrom:(BOOL)isCdrom forIndex:(NSUInteger)index; |
| 80 | +- (void)moveDriveIndex:(NSUInteger)index to:(NSUInteger)newIndex; |
| 81 | +- (nullable UTMNewDrive *)driveNewParamsAtIndex:(NSUInteger)index; |
| 82 | +- (void)removeDriveAtIndex:(NSUInteger)index; |
| 83 | + |
| 84 | +@end |
| 85 | + |
| 86 | +NS_ASSUME_NONNULL_END |
0 commit comments