Kgapi
drives.cpp
74void Drives::Restrictions::setCopyRequiresWriterPermission(bool copyRequiresWriterPermission) const
372 drives->d->createdDate = QDateTime::fromString(map[Drives::Fields::CreatedDate].toString(), Qt::ISODate);
381 backgroundImageFile->d->id = backgroundImageFileMap[Drives::BackgroundImageFile::Fields::Id].toString();
382 backgroundImageFile->d->xCoordinate = backgroundImageFileMap[Drives::BackgroundImageFile::Fields::XCoordinate].toReal();
383 backgroundImageFile->d->yCoordinate = backgroundImageFileMap[Drives::BackgroundImageFile::Fields::YCoordinate].toReal();
384 backgroundImageFile->d->width = backgroundImageFileMap[Drives::BackgroundImageFile::Fields::Width].toReal();
391 capabilities->d->canAddChildren = capabilitiesMap[Drives::Capabilities::Fields::CanAddChildren].toBool();
393 capabilitiesMap[Drives::Capabilities::Fields::CanChangeCopyRequiresWriterPermissionRestriction].toBool();
394 capabilities->d->canChangeDomainUsersOnlyRestriction = capabilitiesMap[Drives::Capabilities::Fields::CanChangeDomainUsersOnlyRestriction].toBool();
395 capabilities->d->canChangeDriveBackground = capabilitiesMap[Drives::Capabilities::Fields::CanChangeDriveBackground].toBool();
396 capabilities->d->canChangeDriveMembersOnlyRestriction = capabilitiesMap[Drives::Capabilities::Fields::CanChangeDriveMembersOnlyRestriction].toBool();
397 capabilities->d->canComment = capabilitiesMap[Drives::Capabilities::Fields::CanComment].toBool();
399 capabilities->d->canDeleteChildren = capabilitiesMap[Drives::Capabilities::Fields::CanDeleteChildren].toBool();
400 capabilities->d->canDeleteDrive = capabilitiesMap[Drives::Capabilities::Fields::CanDeleteDrive].toBool();
401 capabilities->d->canDownload = capabilitiesMap[Drives::Capabilities::Fields::CanDownload].toBool();
403 capabilities->d->canListChildren = capabilitiesMap[Drives::Capabilities::Fields::CanListChildren].toBool();
404 capabilities->d->canManageMembers = capabilitiesMap[Drives::Capabilities::Fields::CanManageMembers].toBool();
405 capabilities->d->canReadRevisions = capabilitiesMap[Drives::Capabilities::Fields::CanReadRevisions].toBool();
407 capabilities->d->canRenameDrive = capabilitiesMap[Drives::Capabilities::Fields::CanRenameDrive].toBool();
409 capabilities->d->canTrashChildren = capabilitiesMap[Drives::Capabilities::Fields::CanTrashChildren].toBool();
416 restrictions->d->adminManagedRestrictions = restrictionsMap[Drives::Restrictions::Fields::AdminManagedRestrictions].toBool();
417 restrictions->d->copyRequiresWriterPermission = restrictionsMap[Drives::Restrictions::Fields::CopyRequiresWriterPermission].toBool();
418 restrictions->d->domainUsersOnly = restrictionsMap[Drives::Restrictions::Fields::DomainUsersOnly].toBool();
419 restrictions->d->driveMembersOnly = restrictionsMap[Drives::Restrictions::Fields::DriveMembersOnly].toBool();
426const QString Drives::Restrictions::Fields::AdminManagedRestrictions = QStringLiteral("adminManagedRestrictions");
427const QString Drives::Restrictions::Fields::CopyRequiresWriterPermission = QStringLiteral("copyRequiresWriterPermission");
429const QString Drives::Restrictions::Fields::DriveMembersOnly = QStringLiteral("driveMembersOnly");
434const QString Drives::Capabilities::Fields::CanChangeDomainUsersOnlyRestriction = QStringLiteral("canChangeDomainUsersOnlyRestriction");
435const QString Drives::Capabilities::Fields::CanChangeDriveBackground = QStringLiteral("canChangeDriveBackground");
436const QString Drives::Capabilities::Fields::CanChangeDriveMembersOnlyRestriction = QStringLiteral("canChangeDriveMembersOnlyRestriction");
439const QString Drives::Capabilities::Fields::CanDeleteChildren = QStringLiteral("canDeleteChildren");
444const QString Drives::Capabilities::Fields::CanManageMembers = QStringLiteral("canManageMembers");
445const QString Drives::Capabilities::Fields::CanReadRevisions = QStringLiteral("canReadRevisions");
449const QString Drives::Capabilities::Fields::CanTrashChildren = QStringLiteral("canTrashChildren");
549void Drives::setBackgroundImageFile(const Drives::BackgroundImageFilePtr &backgroundImageFile) const
604 if (!map.contains(Drives::Fields::Kind) || map[Drives::Fields::Kind].toString() != ApiKindList) {
611 query.addQueryItem(Drives::Fields::PageToken, map.value(Drives::Fields::NextPageToken).toString());
654 restrictionsMap[Drives::Restrictions::Fields::AdminManagedRestrictions] = drives->restrictions()->adminManagedRestrictions();
655 restrictionsMap[Drives::Restrictions::Fields::CopyRequiresWriterPermission] = drives->restrictions()->copyRequiresWriterPermission();
656 restrictionsMap[Drives::Restrictions::Fields::DomainUsersOnly] = drives->restrictions()->domainUsersOnly();
657 restrictionsMap[Drives::Restrictions::Fields::DriveMembersOnly] = drives->restrictions()->driveMembersOnly();
663 backgroundImageFileMap[Drives::BackgroundImageFile::Fields::Id] = drives->backgroundImageFile()->id();
664 backgroundImageFileMap[Drives::BackgroundImageFile::Fields::XCoordinate] = drives->backgroundImageFile()->xCoordinate();
665 backgroundImageFileMap[Drives::BackgroundImageFile::Fields::YCoordinate] = drives->backgroundImageFile()->yCoordinate();
666 backgroundImageFileMap[Drives::BackgroundImageFile::Fields::Width] = drives->backgroundImageFile()->width();
672 capabilitiesMap[Drives::Capabilities::Fields::CanAddChildren] = drives->capabilities()->canAddChildren();
673 capabilitiesMap[Drives::Capabilities::Fields::CanChangeCopyRequiresWriterPermissionRestriction] =
675 capabilitiesMap[Drives::Capabilities::Fields::CanChangeDomainUsersOnlyRestriction] = drives->capabilities()->canChangeDomainUsersOnlyRestriction();
676 capabilitiesMap[Drives::Capabilities::Fields::CanChangeDriveBackground] = drives->capabilities()->canChangeDriveBackground();
677 capabilitiesMap[Drives::Capabilities::Fields::CanChangeDriveMembersOnlyRestriction] = drives->capabilities()->canChangeDriveMembersOnlyRestriction();
678 capabilitiesMap[Drives::Capabilities::Fields::CanComment] = drives->capabilities()->canComment();
680 capabilitiesMap[Drives::Capabilities::Fields::CanDeleteChildren] = drives->capabilities()->canDeleteChildren();
681 capabilitiesMap[Drives::Capabilities::Fields::CanDeleteDrive] = drives->capabilities()->canDeleteDrive();
682 capabilitiesMap[Drives::Capabilities::Fields::CanDownload] = drives->capabilities()->canDownload();
684 capabilitiesMap[Drives::Capabilities::Fields::CanListChildren] = drives->capabilities()->canListChildren();
685 capabilitiesMap[Drives::Capabilities::Fields::CanManageMembers] = drives->capabilities()->canManageMembers();
686 capabilitiesMap[Drives::Capabilities::Fields::CanReadRevisions] = drives->capabilities()->canReadRevisions();
688 capabilitiesMap[Drives::Capabilities::Fields::CanRenameDrive] = drives->capabilities()->canRenameDrive();
690 capabilitiesMap[Drives::Capabilities::Fields::CanTrashChildren] = drives->capabilities()->canTrashChildren();
Drives::BackgroundImageFile holds the structure used for backgroundImageFile property.
Definition drives.h:291
void setId(const QString &id) const
Sets the ID of an image file in Google Drive to use for the background image.
Definition drives.cpp:292
void setYCoordinate(float yCoordinate) const
Sets the Y coordinate of the upper left corner of the cropping area in the background image.
Definition drives.cpp:312
void setWidth(float width) const
Sets the width of the cropped image in the closed range of 0 to 1.
Definition drives.cpp:322
void setXCoordinate(float xCoordinate) const
Returns the X coordinate of the upper left corner of the cropping area in the background image.
Definition drives.cpp:302
QString id() const
Returns the ID of an image file in Google Drive to use for the background image.
Definition drives.cpp:287
float width() const
Returns the width of the cropped image in the closed range of 0 to 1.
Definition drives.cpp:317
float xCoordinate() const
Returns the X coordinate of the upper left corner of the cropping area in the background image.
Definition drives.cpp:297
float yCoordinate() const
Returns the Y coordinate of the upper left corner of the cropping area in the background image.
Definition drives.cpp:307
Drives::Capabilities holds the structure used for capabilities the current user has on this shared dr...
Definition drives.h:137
bool canRenameDrive() const
Returns Whether the current user can rename this shared drive.
Definition drives.cpp:237
bool canEdit() const
Returns Whether the current user can edit files in this shared drive.
Definition drives.cpp:212
bool canShare() const
Returns Whether the current user can share files or folders in this shared drive.
Definition drives.cpp:242
bool canManageMembers() const
Returns Whether the current user can add members to this shared drive or remove them or change their ...
Definition drives.cpp:222
bool canCopy() const
Returns Whether the current user can copy files in this shared drive.
Definition drives.cpp:192
bool canDownload() const
Returns Whether the current user can download files in this shared drive.
Definition drives.cpp:207
bool canListChildren() const
Returns Whether the current user can list the children of folders in this shared drive.
Definition drives.cpp:217
bool canAddChildren() const
Returns whether the current user can add children to folders in this shared drive.
Definition drives.cpp:162
bool canReadRevisions() const
Returns Whether the current user can read the revisions resource of files in this shared drive.
Definition drives.cpp:227
bool canDeleteDrive() const
Returns Whether the current user can delete this shared drive.
Definition drives.cpp:202
bool canChangeCopyRequiresWriterPermissionRestriction() const
Returns whether the current user can change the copyRequiresWriterPermission restriction of this shar...
Definition drives.cpp:167
bool canRename() const
Returns Whether the current user can rename files or folders in this shared drive.
Definition drives.cpp:232
bool canTrashChildren() const
Returns Whether the current user can trash children from folders in this shared drive.
Definition drives.cpp:247
bool canComment() const
Returns Whether the current user can comment on files in this shared drive.
Definition drives.cpp:187
bool canChangeDriveMembersOnlyRestriction() const
Returns whether the current user can change the driveMembersOnly restriction of this shared drive.
Definition drives.cpp:182
bool canDeleteChildren() const
Returns Whether the current user can delete children from folders in this shared drive.
Definition drives.cpp:197
bool canChangeDomainUsersOnlyRestriction() const
Returns whether the current user can change the domainUsersOnly restriction of this shared drive.
Definition drives.cpp:172
bool canChangeDriveBackground() const
Returns whether the current user can change the background of this shared drive.
Definition drives.cpp:177
Drives::Restrictions holds the structure used for a set of restrictions that apply to this shared dri...
Definition drives.h:41
void setDomainUsersOnly(bool domainUsersOnly) const
Sets whether access to this shared drive and items inside this shared drive is restricted to users of...
Definition drives.cpp:84
void setAdminManagedRestrictions(bool adminManagedRestrictions) const
Sets whether administrative privileges on this shared drive are required to modify restrictions.
Definition drives.cpp:64
void setCopyRequiresWriterPermission(bool copyRequiresWriterPermission) const
Sets whether the options to copy, print, or download files inside this shared drive,...
Definition drives.cpp:74
void setDriveMembersOnly(bool driveMembersOnly) const
Sets whether access to items inside this shared drive is restricted to its members.
Definition drives.cpp:94
bool copyRequiresWriterPermission() const
Returns whether the options to copy, print, or download files inside this shared drive,...
Definition drives.cpp:69
bool driveMembersOnly() const
Returns whether access to items inside this shared drive is restricted to its members.
Definition drives.cpp:89
bool adminManagedRestrictions() const
Returns whether administrative privileges on this shared drive are required to modify restrictions.
Definition drives.cpp:59
bool domainUsersOnly() const
Returns whether access to this shared drive and items inside this shared drive is restricted to users...
Definition drives.cpp:79
void setThemeId(const QString &themeId) const
Sets the themeId of the shared drive.
Definition drives.cpp:529
bool hidden() const
Returns whether the shared drive is hidden from default view.
Definition drives.cpp:569
QString id() const
Returns the ID of this shared drive which is also the ID of the top level folder of this shared drive...
Definition drives.cpp:504
CapabilitiesPtr capabilities() const
Returns the capabilities the current user has on this shared drive.
Definition drives.cpp:559
void setBackgroundImageFile(const BackgroundImageFilePtr &backgroundImageFile) const
Sets the backgroundImageFile of the shared drive.
Definition drives.cpp:549
RestrictionsPtr restrictions() const
Returns the set of restrictions that apply to this shared drive or items inside this shared drive.
Definition drives.cpp:579
void setId(const QString &id) const
Sets the ID of this shared drive which is also the ID of the top level folder of this shared drive.
Definition drives.cpp:509
void setColorRgb(const QString &colorRgb) const
Sets the colorRgb of the shared drive.
Definition drives.cpp:539
QDateTime createdDate() const
Returns the time at which the shared drive was created.
Definition drives.cpp:564
QString backgroundImageLink() const
Returns the backgroundImageLink of the shared drive.
Definition drives.cpp:554
void setRestrictions(const RestrictionsPtr &restrictions) const
Sets the restrictions of the shared drive.
Definition drives.cpp:574
BackgroundImageFilePtr backgroundImageFile() const
Returns the image file and cropping parameters from which a background image for this shared drive is...
Definition drives.cpp:544
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 Nov 29 2024 11:54:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.