diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-08-11 12:20:58 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-08-25 14:44:04 +0300 |
commit | c6f8bc732e95236a6ba7447e7ced6d947ca8f0d8 (patch) | |
tree | 29a328a4e01b021d471c36387cfcfacf923bbabd /lib/Contracts | |
parent | 98f476bc57e4594f78284eb08c84c9844d0271df (diff) |
Add a unified search provider
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r-- | lib/Contracts/IMailSearch.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Contracts/IMailSearch.php b/lib/Contracts/IMailSearch.php index c751e2c53..1e14f8e96 100644 --- a/lib/Contracts/IMailSearch.php +++ b/lib/Contracts/IMailSearch.php @@ -31,6 +31,7 @@ use OCA\Mail\Db\Message; use OCA\Mail\Exception\ClientException; use OCA\Mail\Exception\ServiceException; use OCP\AppFramework\Db\DoesNotExistException; +use OCP\IUser; interface IMailSearch { @@ -65,4 +66,16 @@ interface IMailSearch { ?string $filter, ?int $cursor, ?int $limit): array; + + /** + * @param IUser $user + * @param string|null $filter + * @param int|null $cursor + * + * @return Message[] + * + * @throws ClientException + * @throws ServiceException + */ + public function findMessagesGlobally(IUser $user, ?string $filter, ?int $cursor, ?int $limit): array; } |