diff options
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Contacts/ContactsMenu/IContactsStore.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/public/Contacts/ContactsMenu/IContactsStore.php b/lib/public/Contacts/ContactsMenu/IContactsStore.php new file mode 100644 index 00000000000..415c450072d --- /dev/null +++ b/lib/public/Contacts/ContactsMenu/IContactsStore.php @@ -0,0 +1,26 @@ +<?php + +namespace OCP\Contacts\ContactsMenu; + +use OCP\IUser; + +interface IContactsStore { + + + /** + * @param IUser $user + * @param $filter + * @return IEntry[] + */ + public function getContacts(IUser $user, $filter); + + /** + * @brief finds a contact by specifying the property to search on ($shareType) and the value ($shareWith) + * @param IUser $user + * @param integer $shareType + * @param string $shareWith + * @return IEntry|null + */ + public function findOne(IUser $user, $shareType, $shareWith); + +}
\ No newline at end of file |