LoopUIPlugin.swift 676 B

12345678910111213141516171819202122232425
  1. //
  2. // LoopUIPlugin.swift
  3. // LoopKitUI
  4. //
  5. // Created by Pete Schwamb on 7/24/19.
  6. // Copyright © 2019 LoopKit Authors. All rights reserved.
  7. //
  8. public protocol PumpManagerUIPlugin {
  9. var pumpManagerType: PumpManagerUI.Type? { get }
  10. }
  11. public protocol CGMManagerUIPlugin {
  12. var cgmManagerType: CGMManagerUI.Type? { get }
  13. }
  14. public protocol ServiceUIPlugin {
  15. var serviceType: ServiceUI.Type? { get }
  16. }
  17. public protocol LoopUIPlugin: PumpManagerUIPlugin, CGMManagerUIPlugin {}
  18. // TODO: Remove LoopUIPlugin after updating OmniKitPlugin and MinimedKitPlugin in rileylink_ios to explicitly
  19. // use PumpManagerUIPlugin and/or CGMManagerUIPlugin rather than LoopUIPlugin