mirror of
https://github.com/insidegui/VirtualBuddy.git
synced 2026-12-02 01:39:39 +08:00
* Display MobileDevice installation errors in the UI when installation fails, add export logs button for VirtualInstallation-backed restores * Add debug flag to simulate MobileDevice install error end-to-end
18 lines
568 B
Swift
18 lines
568 B
Swift
import Foundation
|
|
|
|
@objc(VirtualInstallationServiceProtocol)
|
|
public protocol VirtualInstallationServiceProtocol {
|
|
func startVirtualMachineInstallation(
|
|
ecid: ECID,
|
|
restoreBundleURL: URL,
|
|
simulateFailure: Bool,
|
|
reply: @escaping @Sendable (_ error: Error?) -> ()
|
|
)
|
|
func cancelVirtualMachineInstallation(ecid: ECID, reply: @escaping @Sendable (_ error: Error?) -> ())
|
|
}
|
|
|
|
@objc(VirtualInstallationClientProtocol)
|
|
public protocol VirtualInstallationClientProtocol {
|
|
func virtualMachineInstallationStateChanged(state: Data)
|
|
}
|