diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-17 11:13:45 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-22 10:03:56 +0100 |
commit | 22112bf71d7e43f57b6987ed35200a99472ea4d6 (patch) | |
tree | b0675012ce6aee09d12fd7bb304ce6f986368dba /lib/public | |
parent | ac6ee0b8b7d06deb5285b99ed55df5baae9d821f (diff) | |
download | nextcloud-server-22112bf71d7e43f57b6987ed35200a99472ea4d6.tar.gz nextcloud-server-22112bf71d7e43f57b6987ed35200a99472ea4d6.zip |
Allow access to addressbook unique uri
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Co-Authored-By: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Contacts/IManager.php | 12 | ||||
-rw-r--r-- | lib/public/IAddressBook.php | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Contacts/IManager.php b/lib/public/Contacts/IManager.php index ec399c37eb4..e744a92d9e2 100644 --- a/lib/public/Contacts/IManager.php +++ b/lib/public/Contacts/IManager.php @@ -154,13 +154,25 @@ interface IManager { public function register(\Closure $callable); /** + * Return a list of the user's addressbooks display names + * * @return array * @since 6.0.0 + * @deprecated 16.0.0 - Use `$this->getUserAddressBooks()` instead */ public function getAddressBooks(); /** + * Return a list of the user's addressbooks + * + * @return IAddressBook[] + * @since 16.0.0 + */ + public function getUserAddressBooks(); + + /** * removes all registered address book instances + * * @return void * @since 6.0.0 */ diff --git a/lib/public/IAddressBook.php b/lib/public/IAddressBook.php index 4739e6f0c5b..c666311ffb2 100644 --- a/lib/public/IAddressBook.php +++ b/lib/public/IAddressBook.php @@ -46,6 +46,13 @@ namespace OCP { public function getKey(); /** + * @return string defining the unique uri + * @since 16.0.0 + * @return string + */ + public function getUri(): string; + + /** * In comparison to getKey() this function returns a human readable (maybe translated) name * @return mixed * @since 5.0.0 |