1
0

IManager.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Calendar\Room;
  8. /**
  9. * @since 14.0.0
  10. */
  11. interface IManager {
  12. /**
  13. * Registers a room backend
  14. *
  15. * @param string $backendClass
  16. * @return void
  17. * @since 14.0.0
  18. * @deprecated 24.0.0 use \OC\AppFramework\Bootstrap\::registerCalendarRoomBackend
  19. */
  20. public function registerBackend(string $backendClass);
  21. /**
  22. * Unregisters a room backend
  23. *
  24. * @param string $backendClass
  25. * @return void
  26. * @since 14.0.0
  27. * @deprecated 24.0.0
  28. */
  29. public function unregisterBackend(string $backendClass);
  30. /**
  31. * @return IBackend[]
  32. * @since 14.0.0
  33. * @deprecated 24.0.0
  34. */
  35. public function getBackends():array;
  36. /**
  37. * @param string $backendId
  38. * @return IBackend|null
  39. * @since 14.0.0
  40. * @deprecated 24.0.0
  41. */
  42. public function getBackend($backendId);
  43. /**
  44. * removes all registered backend instances
  45. * @return void
  46. * @since 14.0.0
  47. * @deprecated 24.0.0
  48. */
  49. public function clear();
  50. /**
  51. * Update all rooms from all backends right now.
  52. *
  53. * @since 30.0.0
  54. */
  55. public function update(): void;
  56. }