From b0c5457c422888f87b76f2b67f05917aed02a775 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 4 Aug 2020 07:57:07 +0200 Subject: IAddressBook: add isShared and isSystemAddressBook Signed-off-by: Georg Ehrke --- lib/public/IAddressBook.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib') diff --git a/lib/public/IAddressBook.php b/lib/public/IAddressBook.php index b2c9a103c2c..ed66af4aa18 100644 --- a/lib/public/IAddressBook.php +++ b/lib/public/IAddressBook.php @@ -107,5 +107,20 @@ namespace OCP { * @since 5.0.0 */ public function delete($id); + + /** + * Returns true if this address-book is not owned by the current user, + * but shared with them. + * + * @return bool + * @since 20.0.0 + */ + public function isShared(): bool; + + /** + * @return bool + * @since 20.0.0 + */ + public function isSystemAddressBook(): bool; } } -- cgit v1.2.3