UTMConfiguration.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. #import <Foundation/Foundation.h>
  17. NS_ASSUME_NONNULL_BEGIN
  18. @interface UTMNewDrive : NSObject
  19. @property (nonatomic, assign) BOOL valid;
  20. @property (nonatomic, nullable, strong) NSNumber *sizeMB;
  21. @property (nonatomic, assign) BOOL isQcow2;
  22. @end
  23. @interface UTMConfiguration : NSObject
  24. @property (nonatomic, weak, readonly) NSDictionary *dictRepresentation;
  25. + (NSArray<NSString *>*)supportedArchitecturesPretty;
  26. + (NSArray<NSString *>*)supportedArchitectures;
  27. + (NSArray<NSString *>*)supportedBootDevices;
  28. + (NSArray<NSString *>*)supportedTargetsForArchitecture:(NSString *)architecture;
  29. + (NSArray<NSString *>*)supportedResolutions;
  30. + (NSArray<NSString *>*)supportedDriveInterfaces;
  31. @property (nonatomic, nullable, strong) NSString *name;
  32. @property (nonatomic, nullable, strong) NSString *changeName;
  33. @property (nonatomic, nullable, strong) NSString *systemArchitecture;
  34. @property (nonatomic, nullable, strong) NSNumber *systemMemory;
  35. @property (nonatomic, nullable, strong) NSNumber *systemCPUCount;
  36. @property (nonatomic, nullable, strong) NSString *systemTarget;
  37. @property (nonatomic, nullable, strong) NSString *systemBootDevice;
  38. @property (nonatomic, nullable, strong) NSString *systemAddArgs;
  39. @property (nonatomic, assign) BOOL displayConsoleOnly;
  40. @property (nonatomic, assign) BOOL displayFixedResolution;
  41. @property (nonatomic, nullable, strong) NSNumber *displayFixedResolutionWidth;
  42. @property (nonatomic, nullable, strong) NSNumber *displayFixedResolutionHeight;
  43. @property (nonatomic, assign) BOOL displayZoomScale;
  44. @property (nonatomic, assign) BOOL displayZoomLetterBox;
  45. @property (nonatomic, assign) BOOL inputTouchscreenMode;
  46. @property (nonatomic, assign) BOOL inputDirect;
  47. @property (nonatomic, assign) BOOL networkEnabled;
  48. @property (nonatomic, assign) BOOL networkLocalhostOnly;
  49. @property (nonatomic, nullable, strong) NSString *networkIPSubnet;
  50. @property (nonatomic, nullable, strong) NSString *networkDHCPStart;
  51. @property (nonatomic, assign) BOOL printEnabled;
  52. @property (nonatomic, assign) BOOL soundEnabled;
  53. @property (nonatomic, assign) BOOL sharingClipboardEnabled;
  54. - (id)initWithDefaults;
  55. - (NSUInteger)countDrives;
  56. - (NSUInteger)newDefaultDrive;
  57. - (nullable NSString *)driveImagePathForIndex:(NSUInteger)index;
  58. - (void)setImagePath:(NSString *)path forIndex:(NSUInteger)index;
  59. - (nullable NSString *)driveInterfaceTypeForIndex:(NSUInteger)index;
  60. - (void)setDriveInterfaceType:(NSString *)interfaceType forIndex:(NSUInteger)index;
  61. - (BOOL)driveIsCdromForIndex:(NSUInteger)index;
  62. - (void)setDriveIsCdrom:(BOOL)isCdrom forIndex:(NSUInteger)index;
  63. - (void)moveDriveIndex:(NSUInteger)index to:(NSUInteger)newIndex;
  64. - (nullable UTMNewDrive *)driveNewParamsAtIndex:(NSUInteger)index;
  65. - (void)removeDriveAtIndex:(NSUInteger)index;
  66. @end
  67. NS_ASSUME_NONNULL_END