diff options
author | SebastianKrupinski <krupinskis05@gmail.com> | 2024-09-07 18:28:50 -0400 |
---|---|---|
committer | SebastianKrupinski <krupinskis05@gmail.com> | 2024-11-07 21:12:37 -0500 |
commit | 7ebeed45bda44dabff20fba0e46b68eec627c3e0 (patch) | |
tree | d3c027077167b54cdc18e4c42e7e1fc21a1dbbf6 /lib/public/Calendar | |
parent | 3bd819745802ed0c1ab8a969db4acb051acfc0cf (diff) | |
download | nextcloud-server-7ebeed45bda44dabff20fba0e46b68eec627c3e0.tar.gz nextcloud-server-7ebeed45bda44dabff20fba0e46b68eec627c3e0.zip |
feat: add iMip Request Handling
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
Diffstat (limited to 'lib/public/Calendar')
-rw-r--r-- | lib/public/Calendar/ICalendar.php | 3 | ||||
-rw-r--r-- | lib/public/Calendar/ICalendarIsShared.php | 25 | ||||
-rw-r--r-- | lib/public/Calendar/ICalendarIsWritable.php | 25 | ||||
-rw-r--r-- | lib/public/Calendar/IManager.php | 7 |
4 files changed, 59 insertions, 1 deletions
diff --git a/lib/public/Calendar/ICalendar.php b/lib/public/Calendar/ICalendar.php index 2f74d329119..f29d6f30176 100644 --- a/lib/public/Calendar/ICalendar.php +++ b/lib/public/Calendar/ICalendar.php @@ -59,7 +59,8 @@ interface ICalendar { public function getPermissions(): int; /** - * Whether the calendar is deleted + * Indicates whether the calendar is in the trash bin + * * @since 26.0.0 */ public function isDeleted(): bool; diff --git a/lib/public/Calendar/ICalendarIsShared.php b/lib/public/Calendar/ICalendarIsShared.php new file mode 100644 index 00000000000..8121c826f4e --- /dev/null +++ b/lib/public/Calendar/ICalendarIsShared.php @@ -0,0 +1,25 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +namespace OCP\Calendar; + +/** + * ICalendar Interface Extension + * + * @since 31.0.0 + */ +interface ICalendarIsShared { + + /** + * Indicates whether the calendar is shared with the current user + * + * @since 31.0.0 + */ + public function isShared(): bool; + +} diff --git a/lib/public/Calendar/ICalendarIsWritable.php b/lib/public/Calendar/ICalendarIsWritable.php new file mode 100644 index 00000000000..f80769e9033 --- /dev/null +++ b/lib/public/Calendar/ICalendarIsWritable.php @@ -0,0 +1,25 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +namespace OCP\Calendar; + +/** + * ICalendar Interface Extension + * + * @since 31.0.0 + */ +interface ICalendarIsWritable { + + /** + * Indicates whether the calendar can be modified + * + * @since 31.0.0 + */ + public function isWritable(): bool; + +} diff --git a/lib/public/Calendar/IManager.php b/lib/public/Calendar/IManager.php index 8a9fe485871..bb3808f133c 100644 --- a/lib/public/Calendar/IManager.php +++ b/lib/public/Calendar/IManager.php @@ -138,6 +138,13 @@ interface IManager { public function newQuery(string $principalUri) : ICalendarQuery; /** + * Handle a iMip REQUEST message + * + * @since 31.0.0 + */ + public function handleIMipRequest(string $principalUri, string $sender, string $recipient, string $calendarData): bool; + + /** * Handle a iMip REPLY message * * @since 25.0.0 |