Add TeamdriveModifyJob and update teamdrive example to allow renaming a Team Drive.
ClosedPublic

Authored by barchiesi on Mar 17 2019, 5:11 PM.

Details

Summary

Add TeamdriveModifyJob and add missing setters to Teamdrive.

Test Plan

Add TeamdriveModifyJobTest for Team Drive renaming test and update team drive example allowing to rename selected Team Drives.

Diff Detail

Repository
R477 KGAPI Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
barchiesi created this revision.Mar 17 2019, 5:11 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMar 17 2019, 5:11 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript

Had some typos in copyright notices.

autotests/drive/teamdrivecreatejobtest.cpp
1–20

This explains everything

dvratil requested changes to this revision.Mar 17 2019, 5:43 PM
dvratil added inline comments.
autotests/drive/teamdrivecreatejobtest.cpp
2

Oh. I love this! :D

autotests/drive/teamdrivedeletejobtest.cpp
2

I love this one even more! :D

src/drive/teamdrivemodifyjob.cpp
108

You should return here after calling emitFinished(): processing another item after emitting result can lead to some weird states and behavior.

This revision now requires changes to proceed.Mar 17 2019, 5:43 PM
barchiesi updated this revision to Diff 54115.Mar 17 2019, 5:53 PM
dvratil accepted this revision.Mar 17 2019, 5:57 PM
This revision is now accepted and ready to land.Mar 17 2019, 5:57 PM
This revision was automatically updated to reflect the committed changes.