Kgapi
teamdrive.cpp
74void Teamdrive::Restrictions::setCopyRequiresWriterPermission(bool copyRequiresWriterPermission) const
278bool Teamdrive::BackgroundImageFile::operator==(const Teamdrive::BackgroundImageFile &other) const
350 if (!map.contains(Teamdrive::Fields::Kind) || map[Teamdrive::Fields::Kind].toString() != ApiKind) {
371 teamdrive->d->createdDate = QDateTime::fromString(map[Teamdrive::Fields::CreatedDate].toString(), Qt::ISODate);
377 backgroundImageFile->d->id = backgroundImageFileMap[Teamdrive::BackgroundImageFile::Fields::Id].toString();
378 backgroundImageFile->d->xCoordinate = backgroundImageFileMap[Teamdrive::BackgroundImageFile::Fields::XCoordinate].toReal();
379 backgroundImageFile->d->yCoordinate = backgroundImageFileMap[Teamdrive::BackgroundImageFile::Fields::YCoordinate].toReal();
380 backgroundImageFile->d->width = backgroundImageFileMap[Teamdrive::BackgroundImageFile::Fields::Width].toReal();
387 capabilities->d->canAddChildren = capabilitiesMap[Teamdrive::Capabilities::Fields::CanAddChildren].toBool();
389 capabilitiesMap[Teamdrive::Capabilities::Fields::CanChangeCopyRequiresWriterPermissionRestriction].toBool();
390 capabilities->d->canChangeDomainUsersOnlyRestriction = capabilitiesMap[Teamdrive::Capabilities::Fields::CanChangeDomainUsersOnlyRestriction].toBool();
391 capabilities->d->canChangeTeamDriveBackground = capabilitiesMap[Teamdrive::Capabilities::Fields::CanChangeTeamDriveBackground].toBool();
392 capabilities->d->canChangeTeamMembersOnlyRestriction = capabilitiesMap[Teamdrive::Capabilities::Fields::CanChangeTeamMembersOnlyRestriction].toBool();
393 capabilities->d->canComment = capabilitiesMap[Teamdrive::Capabilities::Fields::CanComment].toBool();
395 capabilities->d->canDeleteChildren = capabilitiesMap[Teamdrive::Capabilities::Fields::CanDeleteChildren].toBool();
396 capabilities->d->canDeleteTeamDrive = capabilitiesMap[Teamdrive::Capabilities::Fields::CanDeleteTeamDrive].toBool();
397 capabilities->d->canDownload = capabilitiesMap[Teamdrive::Capabilities::Fields::CanDownload].toBool();
399 capabilities->d->canListChildren = capabilitiesMap[Teamdrive::Capabilities::Fields::CanListChildren].toBool();
400 capabilities->d->canManageMembers = capabilitiesMap[Teamdrive::Capabilities::Fields::CanManageMembers].toBool();
401 capabilities->d->canReadRevisions = capabilitiesMap[Teamdrive::Capabilities::Fields::CanReadRevisions].toBool();
402 capabilities->d->canRename = capabilitiesMap[Teamdrive::Capabilities::Fields::CanRename].toBool();
403 capabilities->d->canRenameTeamDrive = capabilitiesMap[Teamdrive::Capabilities::Fields::CanRenameTeamDrive].toBool();
404 capabilities->d->canShare = capabilitiesMap[Teamdrive::Capabilities::Fields::CanShare].toBool();
405 capabilities->d->canTrashChildren = capabilitiesMap[Teamdrive::Capabilities::Fields::CanTrashChildren].toBool();
412 restrictions->d->adminManagedRestrictions = restrictionsMap[Teamdrive::Restrictions::Fields::AdminManagedRestrictions].toBool();
413 restrictions->d->copyRequiresWriterPermission = restrictionsMap[Teamdrive::Restrictions::Fields::CopyRequiresWriterPermission].toBool();
414 restrictions->d->domainUsersOnly = restrictionsMap[Teamdrive::Restrictions::Fields::DomainUsersOnly].toBool();
415 restrictions->d->teamMembersOnly = restrictionsMap[Teamdrive::Restrictions::Fields::TeamMembersOnly].toBool();
422const QString Teamdrive::Restrictions::Fields::AdminManagedRestrictions = QStringLiteral("adminManagedRestrictions");
423const QString Teamdrive::Restrictions::Fields::CopyRequiresWriterPermission = QStringLiteral("copyRequiresWriterPermission");
424const QString Teamdrive::Restrictions::Fields::DomainUsersOnly = QStringLiteral("domainUsersOnly");
425const QString Teamdrive::Restrictions::Fields::TeamMembersOnly = QStringLiteral("teamMembersOnly");
427const QString Teamdrive::Capabilities::Fields::CanAddChildren = QStringLiteral("canAddChildren");
428const QString Teamdrive::Capabilities::Fields::CanChangeCopyRequiresWriterPermissionRestriction =
430const QString Teamdrive::Capabilities::Fields::CanChangeDomainUsersOnlyRestriction = QStringLiteral("canChangeDomainUsersOnlyRestriction");
431const QString Teamdrive::Capabilities::Fields::CanChangeTeamDriveBackground = QStringLiteral("canChangeTeamDriveBackground");
432const QString Teamdrive::Capabilities::Fields::CanChangeTeamMembersOnlyRestriction = QStringLiteral("canChangeTeamMembersOnlyRestriction");
435const QString Teamdrive::Capabilities::Fields::CanDeleteChildren = QStringLiteral("canDeleteChildren");
436const QString Teamdrive::Capabilities::Fields::CanDeleteTeamDrive = QStringLiteral("canDeleteTeamDrive");
439const QString Teamdrive::Capabilities::Fields::CanListChildren = QStringLiteral("canListChildren");
440const QString Teamdrive::Capabilities::Fields::CanManageMembers = QStringLiteral("canManageMembers");
441const QString Teamdrive::Capabilities::Fields::CanReadRevisions = QStringLiteral("canReadRevisions");
443const QString Teamdrive::Capabilities::Fields::CanRenameTeamDrive = QStringLiteral("canRenameTeamDrive");
445const QString Teamdrive::Capabilities::Fields::CanTrashChildren = QStringLiteral("canTrashChildren");
448const QString Teamdrive::BackgroundImageFile::Fields::XCoordinate = QStringLiteral("xCoordinate");
449const QString Teamdrive::BackgroundImageFile::Fields::YCoordinate = QStringLiteral("yCoordinate");
593 if (!map.contains(Teamdrive::Fields::Kind) || map[Teamdrive::Fields::Kind].toString() != ApiKindList) {
600 query.addQueryItem(Teamdrive::Fields::PageToken, map.value(Teamdrive::Fields::NextPageToken).toString());
642 restrictionsMap[Teamdrive::Restrictions::Fields::AdminManagedRestrictions] = teamdrive->restrictions()->adminManagedRestrictions();
643 restrictionsMap[Teamdrive::Restrictions::Fields::CopyRequiresWriterPermission] = teamdrive->restrictions()->copyRequiresWriterPermission();
644 restrictionsMap[Teamdrive::Restrictions::Fields::DomainUsersOnly] = teamdrive->restrictions()->domainUsersOnly();
645 restrictionsMap[Teamdrive::Restrictions::Fields::TeamMembersOnly] = teamdrive->restrictions()->teamMembersOnly();
651 backgroundImageFileMap[Teamdrive::BackgroundImageFile::Fields::Id] = teamdrive->backgroundImageFile()->id();
652 backgroundImageFileMap[Teamdrive::BackgroundImageFile::Fields::XCoordinate] = teamdrive->backgroundImageFile()->xCoordinate();
653 backgroundImageFileMap[Teamdrive::BackgroundImageFile::Fields::YCoordinate] = teamdrive->backgroundImageFile()->yCoordinate();
654 backgroundImageFileMap[Teamdrive::BackgroundImageFile::Fields::Width] = teamdrive->backgroundImageFile()->width();
660 capabilitiesMap[Teamdrive::Capabilities::Fields::CanAddChildren] = teamdrive->capabilities()->canAddChildren();
661 capabilitiesMap[Teamdrive::Capabilities::Fields::CanChangeCopyRequiresWriterPermissionRestriction] =
665 capabilitiesMap[Teamdrive::Capabilities::Fields::CanChangeTeamDriveBackground] = teamdrive->capabilities()->canChangeTeamDriveBackground();
668 capabilitiesMap[Teamdrive::Capabilities::Fields::CanComment] = teamdrive->capabilities()->canComment();
669 capabilitiesMap[Teamdrive::Capabilities::Fields::CanCopy] = teamdrive->capabilities()->canCopy();
670 capabilitiesMap[Teamdrive::Capabilities::Fields::CanDeleteChildren] = teamdrive->capabilities()->canDeleteChildren();
671 capabilitiesMap[Teamdrive::Capabilities::Fields::CanDeleteTeamDrive] = teamdrive->capabilities()->canDeleteTeamDrive();
672 capabilitiesMap[Teamdrive::Capabilities::Fields::CanDownload] = teamdrive->capabilities()->canDownload();
673 capabilitiesMap[Teamdrive::Capabilities::Fields::CanEdit] = teamdrive->capabilities()->canEdit();
674 capabilitiesMap[Teamdrive::Capabilities::Fields::CanListChildren] = teamdrive->capabilities()->canListChildren();
675 capabilitiesMap[Teamdrive::Capabilities::Fields::CanManageMembers] = teamdrive->capabilities()->canManageMembers();
676 capabilitiesMap[Teamdrive::Capabilities::Fields::CanReadRevisions] = teamdrive->capabilities()->canReadRevisions();
677 capabilitiesMap[Teamdrive::Capabilities::Fields::CanRename] = teamdrive->capabilities()->canRename();
678 capabilitiesMap[Teamdrive::Capabilities::Fields::CanRenameTeamDrive] = teamdrive->capabilities()->canRenameTeamDrive();
679 capabilitiesMap[Teamdrive::Capabilities::Fields::CanShare] = teamdrive->capabilities()->canShare();
680 capabilitiesMap[Teamdrive::Capabilities::Fields::CanTrashChildren] = teamdrive->capabilities()->canTrashChildren();
DriveTeamdrive::BackgroundImageFile holds the structure used for backgroundImageFile property.
Definition teamdrive.h:289
float yCoordinate() const
Returns the y coordinate for this background image file.
Definition teamdrive.cpp:307
void setId(const QString &id) const
Sets the id of the background image file.
Definition teamdrive.cpp:292
void setWidth(float width) const
Sets the width for this background image file.
Definition teamdrive.cpp:322
void setYCoordinate(float yCoordinate) const
Sets the y coordinate for this background image file.
Definition teamdrive.cpp:312
float xCoordinate() const
Returns the x coordinate for this background image file.
Definition teamdrive.cpp:297
void setXCoordinate(float xCoordinate) const
Sets the x coordinate for this background image file.
Definition teamdrive.cpp:302
DriveTeamdrive::Capabilities holds the structure used for capabilities property.
Definition teamdrive.h:135
bool canReadRevisions() const
Returns Whether the current user can read the revisions resource of files in this Team Drive.
Definition teamdrive.cpp:227
bool canManageMembers() const
Returns Whether the current user can add members to this Team Drive or remove them or change their ro...
Definition teamdrive.cpp:222
bool canListChildren() const
Returns Whether the current user can list the children of folders in this Team Drive.
Definition teamdrive.cpp:217
bool canCopy() const
Returns Whether the current user can copy files in this Team Drive.
Definition teamdrive.cpp:192
bool canChangeTeamMembersOnlyRestriction() const
Returns whether the current user can change the teamMembersOnly restriction of this Team Drive.
Definition teamdrive.cpp:182
bool canChangeDomainUsersOnlyRestriction() const
Returns whether the current user can change the domainUsersOnly restriction of this Team Drive.
Definition teamdrive.cpp:172
bool canShare() const
Returns Whether the current user can share files or folders in this Team Drive.
Definition teamdrive.cpp:242
bool canComment() const
Returns Whether the current user can comment on files in this Team Drive.
Definition teamdrive.cpp:187
bool canRenameTeamDrive() const
Returns Whether the current user can rename this Team Drive.
Definition teamdrive.cpp:237
bool canAddChildren() const
Returns whether the current user can add children to folders in this Team Drive.
Definition teamdrive.cpp:162
bool canRename() const
Returns Whether the current user can rename files or folders in this Team Drive.
Definition teamdrive.cpp:232
bool canDeleteTeamDrive() const
Returns Whether the current user can delete this Team Drive.
Definition teamdrive.cpp:202
bool canDownload() const
Returns Whether the current user can download files in this Team Drive.
Definition teamdrive.cpp:207
bool canChangeCopyRequiresWriterPermissionRestriction() const
Returns whether the current user can change the copyRequiresWriterPermission restriction of this Team...
Definition teamdrive.cpp:167
bool canEdit() const
Returns Whether the current user can edit files in this Team Drive.
Definition teamdrive.cpp:212
bool canTrashChildren() const
Returns Whether the current user can trash children from folders in this Team Drive.
Definition teamdrive.cpp:247
bool canDeleteChildren() const
Returns Whether the current user can delete children from folders in this Team Drive.
Definition teamdrive.cpp:197
bool canChangeTeamDriveBackground() const
Returns whether the current user can change the background of this Team Drive.
Definition teamdrive.cpp:177
DriveTeamdrive::Restrictions holds the structure used for restrictions property.
Definition teamdrive.h:40
void setDomainUsersOnly(bool domainUsersOnly) const
Sets whether access to this Team Drive and items inside this Team Drive is restricted to users of the...
Definition teamdrive.cpp:84
void setAdminManagedRestrictions(bool adminManagedRestrictions) const
Sets whether administrative privileges on this Team Drive are required to modify restrictions.
Definition teamdrive.cpp:64
bool teamMembersOnly() const
Returns whether access to items inside this Team Drive is restricted to members of this Team Drive.
Definition teamdrive.cpp:89
void setTeamMembersOnly(bool teamMembersOnly) const
Sets whether access to items inside this Team Drive is restricted to members of this Team Drive.
Definition teamdrive.cpp:94
bool domainUsersOnly() const
Returns whether access to this Team Drive and items inside this Team Drive is restricted to users of ...
Definition teamdrive.cpp:79
bool adminManagedRestrictions() const
Returns whether administrative privileges on this Team Drive are required to modify restrictions.
Definition teamdrive.cpp:59
bool copyRequiresWriterPermission() const
Returns whether the options to copy, print, or download files inside this Team Drive,...
Definition teamdrive.cpp:69
void setCopyRequiresWriterPermission(bool copyRequiresWriterPermission) const
Sets whether the options to copy, print, or download files inside this Team Drive,...
Definition teamdrive.cpp:74
Teamdrive contains a representation of a Team Drive.
Definition teamdrive.h:33
void setThemeId(const QString &themeId) const
Sets the themeId of the teamdrive.
Definition teamdrive.cpp:523
CapabilitiesPtr capabilities() const
Returns the capabilities the current user has on this Team Drive.
Definition teamdrive.cpp:553
void setBackgroundImageFile(const BackgroundImageFilePtr &backgroundImageFile) const
Sets the backgroundImageFile of the teamdrive.
Definition teamdrive.cpp:543
QString backgroundImageLink() const
Returns the backgroundImageLink of the teamdrive.
Definition teamdrive.cpp:548
void setRestrictions(const RestrictionsPtr &restrictions) const
Sets the restrictions of the teamdrive.
Definition teamdrive.cpp:563
void setColorRgb(const QString &colorRgb) const
Sets the colorRgb of the teamdrive.
Definition teamdrive.cpp:533
QDateTime createdDate() const
Returns the time at which the Team Drive was created.
Definition teamdrive.cpp:558
BackgroundImageFilePtr backgroundImageFile() const
Returns the image file and cropping parameters from which a background image for this Team Drive is s...
Definition teamdrive.cpp:538
RestrictionsPtr restrictions() const
Returns the set of restrictions that apply to this Team Drive or items inside this Team Drive.
Definition teamdrive.cpp:568
char * toString(const EngineQuery &query)
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
Compact
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
QJsonDocument fromVariant(const QVariant &variant)
bool isNull() const const
QByteArray toJson(JsonFormat format) const const
QVariant toVariant() const const
ISODate
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)
void setQuery(const QString &query, ParsingMode mode)
QMap< QString, QVariant > toMap() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.