Adds listing of account Shared Drives through the url 'gdrive:/account@gmail.com/Shared Drives/'.
Supported operations:
- Create via 'Create New' -> 'Folder...'
- Delete (if empty)
- Rename
Discussion in T10630: Show Team Drives
elvisangelaccio |
Adds listing of account Shared Drives through the url 'gdrive:/account@gmail.com/Shared Drives/'.
Supported operations:
Discussion in T10630: Show Team Drives
No Linters Available |
No Unit Test Coverage |
Buildable 16870 | |
Build 16888: arc lint + arc unit |
src/gdriveurl.cpp | ||
---|---|---|
24 | "Shared Drives" should be translated if possible. | |
src/kio_gdrive.cpp | ||
364 | Q_FOREACH is deprecated, please avoid it in new code. | |
377 | Nitpick: opening brace goes to the next line | |
384 | const | |
389 | Missing pass-by-reference Nitpick: opening brace goes to the next line | |
396 | Missing pass-by-reference Nitpick: opening brace goes to the next line | |
409 | Redundant comment, info is already in the apidox of runJob. | |
413 | Prefer at(0) | |
430–434 | Can't we use runJob() here? | |
455 | This comment should be just before the if() | |
522 | Nitpick: else not needed after return | |
684 | Typo: runJob | |
1173 | "error() will have been called in case of error" | |
1246 | runJob already called error() here, no? | |
src/kio_gdrive.h | ||
95 | const QString &; prefer enum instead of bool as arguments. |
src/kio_gdrive.cpp | ||
---|---|---|
430–434 | The desired behavior is silently failing if the user isn't allowed to create shared drives and being that runJob() will always call error(), it isn't used. |
src/gdriveurl.cpp | ||
---|---|---|
24 | Sorry, this makes gdriveurl depend on ki18n (e.g. when building urltest). We should call i18n() directly in KIOGDrive::fetchSharedDrivesRootEntry() imho. BTW: does this translation even works? Isn't "Shared Drives" part of the path provided by Google? If we translate it on our side, how can we be sure that Google "understands" our translation? | |
src/kio_gdrive.cpp | ||
35–57 | Please keep the list of includes sorted. | |
276 | Missing pass-by-reference | |
363 | const | |
449 | Nitpick: else after closing brace on previous line |
moved translation of Shared Drive label to kio_gdrive.cpp
ordered kio_gdrive.cpp includes
const and ref fixes
src/gdriveurl.cpp | ||
---|---|---|
24 | I moved the translating to kio_gdrive.cpp, using it only for UDS_DISPLAY_NAME. All operations on Shared Drives are done by id, this string or its path is practically only user facing. |