From d084e7656be259f45207ea199e362d857f743510 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 2 Oct 2022 12:39:30 +0200 Subject: Add isDeleted property to OCP\Calendar\ICalendar Signed-off-by: Thomas Citharel --- apps/dav/lib/CalDAV/CalendarImpl.php | 7 +++++++ lib/public/Calendar/ICalendar.php | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/apps/dav/lib/CalDAV/CalendarImpl.php b/apps/dav/lib/CalDAV/CalendarImpl.php index 4eef1e7f8d3..53cde5a7b75 100644 --- a/apps/dav/lib/CalDAV/CalendarImpl.php +++ b/apps/dav/lib/CalDAV/CalendarImpl.php @@ -130,6 +130,13 @@ class CalendarImpl implements ICreateFromString { return $result; } + /** + * @since 26.0.0 + */ + public function isDeleted(): bool { + return $this->calendar->isDeleted(); + } + /** * Create a new calendar event for this calendar * by way of an ICS string diff --git a/lib/public/Calendar/ICalendar.php b/lib/public/Calendar/ICalendar.php index f1f2d5eb6f1..e1644ca82aa 100644 --- a/lib/public/Calendar/ICalendar.php +++ b/lib/public/Calendar/ICalendar.php @@ -75,4 +75,10 @@ interface ICalendar { * @since 13.0.0 */ public function getPermissions(): int; + + /** + * Whether the calendar is deleted + * @since 26.0.0 + */ + public function isDeleted(): bool; } -- cgit v1.2.3