Skip to content
Commit f7ec2150 authored by David Barchiesi's avatar David Barchiesi Committed by Daniel Vrátil
Browse files

Add TeamdriveSearchQuery and support for it in TeamdriveFetchJob.

Summary: As of now, TeamdriveFetchJob is missing support for search queries (as seen in FileFetchJob). These queries may be used with an account with Team Drive admin priviledges.

Test Plan:
I added TeamdriveSearchQueryTest which should cover all functionality.

Below is an example of usage with TeamdriveFetchJob:
```
lang=c++
KGAPI2::Drive::TeamdriveSearchQuery query;
query.addQuery(KGAPI2::Drive::TeamdriveSearchQuery::MemberCount, KGAPI2::Drive::TeamdriveSearchQuery::Less, 10);

KGAPI2::Drive::TeamdriveFetchJob *fetchJob = new KGAPI2::Drive::TeamdriveFetchJob(query, m_account, this);
```

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim, #libkgapi

Tags: #kde_pim, #libkgapi

Maniphest Tasks: T10521

Differential Revision: https://phabricator.kde.org/D19546
parent 5a252c1f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment