build: Fix swift warnings
Use 'AnyObject' instead of 'class' to restrict protocol inheritance Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
3668f3af9f
commit
73c708d902
|
@ -5,14 +5,14 @@ import Foundation
|
||||||
import NetworkExtension
|
import NetworkExtension
|
||||||
import os.log
|
import os.log
|
||||||
|
|
||||||
protocol TunnelsManagerListDelegate: class {
|
protocol TunnelsManagerListDelegate: AnyObject {
|
||||||
func tunnelAdded(at index: Int)
|
func tunnelAdded(at index: Int)
|
||||||
func tunnelModified(at index: Int)
|
func tunnelModified(at index: Int)
|
||||||
func tunnelMoved(from oldIndex: Int, to newIndex: Int)
|
func tunnelMoved(from oldIndex: Int, to newIndex: Int)
|
||||||
func tunnelRemoved(at index: Int, tunnel: TunnelContainer)
|
func tunnelRemoved(at index: Int, tunnel: TunnelContainer)
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol TunnelsManagerActivationDelegate: class {
|
protocol TunnelsManagerActivationDelegate: AnyObject {
|
||||||
func tunnelActivationAttemptFailed(tunnel: TunnelContainer, error: TunnelsManagerActivationAttemptError) // startTunnel wasn't called or failed
|
func tunnelActivationAttemptFailed(tunnel: TunnelContainer, error: TunnelsManagerActivationAttemptError) // startTunnel wasn't called or failed
|
||||||
func tunnelActivationAttemptSucceeded(tunnel: TunnelContainer) // startTunnel succeeded
|
func tunnelActivationAttemptSucceeded(tunnel: TunnelContainer) // startTunnel succeeded
|
||||||
func tunnelActivationFailed(tunnel: TunnelContainer, error: TunnelsManagerActivationError) // status didn't change to connected
|
func tunnelActivationFailed(tunnel: TunnelContainer, error: TunnelsManagerActivationError) // status didn't change to connected
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import AVFoundation
|
import AVFoundation
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
protocol QRScanViewControllerDelegate: class {
|
protocol QRScanViewControllerDelegate: AnyObject {
|
||||||
func addScannedQRCode(tunnelConfiguration: TunnelConfiguration, qrScanViewController: QRScanViewController, completionHandler: (() -> Void)?)
|
func addScannedQRCode(tunnelConfiguration: TunnelConfiguration, qrScanViewController: QRScanViewController, completionHandler: (() -> Void)?)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import UIKit
|
||||||
import SystemConfiguration.CaptiveNetwork
|
import SystemConfiguration.CaptiveNetwork
|
||||||
import NetworkExtension
|
import NetworkExtension
|
||||||
|
|
||||||
protocol SSIDOptionEditTableViewControllerDelegate: class {
|
protocol SSIDOptionEditTableViewControllerDelegate: AnyObject {
|
||||||
func ssidOptionSaved(option: ActivateOnDemandViewModel.OnDemandSSIDOption, ssids: [String])
|
func ssidOptionSaved(option: ActivateOnDemandViewModel.OnDemandSSIDOption, ssids: [String])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
protocol TunnelEditTableViewControllerDelegate: class {
|
protocol TunnelEditTableViewControllerDelegate: AnyObject {
|
||||||
func tunnelSaved(tunnel: TunnelContainer)
|
func tunnelSaved(tunnel: TunnelContainer)
|
||||||
func tunnelEditingCancelled()
|
func tunnelEditingCancelled()
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
|
|
||||||
protocol StatusMenuWindowDelegate: class {
|
protocol StatusMenuWindowDelegate: AnyObject {
|
||||||
func showManageTunnelsWindow(completion: ((NSWindow?) -> Void)?)
|
func showManageTunnelsWindow(completion: ((NSWindow?) -> Void)?)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
|
|
||||||
protocol TunnelEditViewControllerDelegate: class {
|
protocol TunnelEditViewControllerDelegate: AnyObject {
|
||||||
func tunnelSaved(tunnel: TunnelContainer)
|
func tunnelSaved(tunnel: TunnelContainer)
|
||||||
func tunnelEditingCancelled()
|
func tunnelEditingCancelled()
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
|
|
||||||
protocol TunnelsListTableViewControllerDelegate: class {
|
protocol TunnelsListTableViewControllerDelegate: AnyObject {
|
||||||
func tunnelsSelected(tunnelIndices: [Int])
|
func tunnelsSelected(tunnelIndices: [Int])
|
||||||
func tunnelsListEmpty()
|
func tunnelsListEmpty()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue