Kgapi
permission.cpp
54QString Permission::PermissionDetails::Private::permissionTypeToName(Permission::PermissionDetails::PermissionType permissionType)
66Permission::PermissionDetails::PermissionType Permission::PermissionDetails::Private::permissionTypeFromName(const QString &typeName)
77Permission::PermissionDetails::PermissionType Permission::PermissionDetails::permissionType() const
174 if (!map.contains(QLatin1StringView("kind")) || map[QStringLiteral("kind")].toString() != QLatin1StringView("drive#permission")) {
198 permission->d->expirationDate = QDateTime::fromString(map[QStringLiteral("expirationDate")].toString(), Qt::ISODate);
207 PermissionDetails::Private::permissionTypeFromName(permissionDetailsMap[QStringLiteral("permissionType")].toString());
208 permissionDetails->d->role = Private::roleFromName(permissionDetailsMap[QStringLiteral("role")].toString());
209 const QStringList permissionDetailsAdditionalRoles = permissionDetailsMap[QStringLiteral("additionalRoles")].toStringList();
213 permissionDetails->d->inheritedFrom = permissionDetailsMap[QStringLiteral("inheritedFrom")].toString();
397 if (!map.contains(QLatin1StringView("kind")) || map[QStringLiteral("kind")].toString() != QLatin1StringView("drive#permissionList")) {
Details of whether the permissions on this shared drive item are inherited or directly on this item.
Definition permission.h:54
PermissionDetails::PermissionType permissionType() const
The permission type for this user.
Definition permission.cpp:77
QList< Permission::Role > additionalRoles() const
Additional roles for this user.
Definition permission.cpp:87
QString inheritedFrom() const
The ID of the item from which this permission is inherited.
Definition permission.cpp:92
void setWithLink(bool withLink)
Sets whether the link is required for this permission.
Definition permission.cpp:332
bool withLink() const
Returns whether the link is required for this permission.
Definition permission.cpp:327
QString value() const
Returns the email address or domain name for the entity.
Definition permission.cpp:342
void setAdditionalRoles(const QList< Role > &additionalRoles)
Sets additional roles for this user.
Definition permission.cpp:307
QString authKey() const
Returns the authkey parameter required for this permission.
Definition permission.cpp:322
void setRole(Permission::Role role)
Sets the primary role for this user.
Definition permission.cpp:297
QUrl photoLink() const
Returns a link to the profile photo, if available.
Definition permission.cpp:337
bool deleted() const
Whether the account associated with this permission has been deleted.
Definition permission.cpp:367
Permission::PermissionDetailsList permissionDetails() const
Details of whether the permissions on this shared drive item are inherited or directly on this item.
Definition permission.cpp:372
QString emailAddress() const
The email address of the user or group this permission refers to.
Definition permission.cpp:352
QDateTime expirationDate() const
The time at which this permission will expire.
Definition permission.cpp:362
void setValue(const QString &value)
Sets the email address or domain name for the entity.
Definition permission.cpp:347
QList< Role > additionalRoles() const
Returns additional roles for this user.
Definition permission.cpp:302
QString domain() const
The domain name of the entity this permission refers to.
Definition permission.cpp:357
char * toString(const EngineQuery &query)
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
bool isEmpty() const const
void reserve(qsizetype size)
ISODate
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)
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 13 2024 11:54:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.