aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-08-04 07:57:07 +0200
committerGeorg Ehrke <developer@georgehrke.com>2020-08-05 09:04:41 +0200
commitb0c5457c422888f87b76f2b67f05917aed02a775 (patch)
treeeb423d096287fb63d9a8a939c025ff6290b74393 /lib
parent1cf9f4281795610bfaf74af9e3f3f1c3c544c08c (diff)
downloadnextcloud-server-b0c5457c422888f87b76f2b67f05917aed02a775.tar.gz
nextcloud-server-b0c5457c422888f87b76f2b67f05917aed02a775.zip
IAddressBook: add isShared and isSystemAddressBook
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/IAddressBook.php15
1 files changed, 15 insertions, 0 deletions
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;
}
}