ServiceSetupNotifying.swift 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // ServiceSetupNotifying.swift
  3. // LoopKitUI
  4. //
  5. // Created by Darin Krauss on 9/30/19.
  6. // Copyright © 2019 LoopKit Authors. All rights reserved.
  7. //
  8. import LoopKit
  9. public protocol ServiceSetupDelegate: AnyObject {
  10. /// Informs the delegate that the specified service was created.
  11. ///
  12. /// - Parameters:
  13. /// - service: The service created.
  14. func serviceSetupNotifying(_ object: ServiceSetupNotifying, didCreateService service: Service)
  15. }
  16. public protocol ServiceSetupNotifying: AnyObject {
  17. /// Delegate to notify about service setup.
  18. var serviceSetupDelegate: ServiceSetupDelegate? { get set }
  19. }
  20. public protocol ServiceSettingsDelegate: AnyObject {
  21. /// Informs the delegate that the specified service was deleted.
  22. ///
  23. /// - Parameters:
  24. /// - service: The service deleted.
  25. func serviceSettingsNotifying(_ object: ServiceSettingsNotifying, didDeleteService service: Service)
  26. }
  27. public protocol ServiceSettingsNotifying: AnyObject {
  28. /// Delegate to notify about service settings.
  29. var serviceSettingsDelegate: ServiceSettingsDelegate? { get set }
  30. }