Add TeamdriveSearchQuery and support for it in TeamdriveFetchJob.

Authored by barchiesi on Mar 5 2019, 4:27 PM.



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:

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);

Diff Detail

R477 KGAPI Library
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
barchiesi created this revision.Mar 5 2019, 4:27 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMar 5 2019, 4:27 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dvratil accepted this revision.Mar 6 2019, 11:26 AM


This revision is now accepted and ready to land.Mar 6 2019, 11:26 AM
This revision was automatically updated to reflect the committed changes.