Kgapi
revision.cpp
73 if (!map.contains(QLatin1StringView("kind")) || map[QStringLiteral("kind")].toString() != QLatin1StringView("drive#revision")) {
82 revision->d->modifiedDate = QDateTime::fromString(map[QStringLiteral("modifiedDate")].toString(), Qt::ISODate);
90 revision->d->lastModifyingUser = User::fromJSON(map[QStringLiteral("lastModifyingUser")].toMap());
266 if (!map.contains(QLatin1StringView("kind")) || map[QStringLiteral("kind")].toString() != QLatin1StringView("drive#revisionList")) {
bool publishAuto() const
Returns whether subsequent revisions will be automatically republished.
Definition revision.cpp:190
bool pinned() const
Returns whether this revision is pinned to prevent automatic purging.
Definition revision.cpp:165
QDateTime modifiedDate() const
Returns the last time this revision was modified.
Definition revision.cpp:160
void setPinned(bool pinned)
Sets whether this revision is pinned to prevent automatic purging.
Definition revision.cpp:170
void setPublishedOutsideDomain(bool publishedOutsideDomain)
Sets whether this revision is published outside the domain.
Definition revision.cpp:205
QString originalFilename() const
Returns the original filename when this revision was created.
Definition revision.cpp:230
QMap< QString, QUrl > exportLinks() const
Returns the links for exporting Google Docs to specific formats.
Definition revision.cpp:215
void setPublished(bool published)
Sets whether this revision is published.
Definition revision.cpp:180
void setPublishAuto(bool publishAuto)
Sets whether subsequent revisions will be automatically republished.
Definition revision.cpp:195
QString lastModifyingUserName() const
Returns the name of the last user to modify this revision.
Definition revision.cpp:220
bool publishedOutsideDomain() const
Returns whether this revision is published outside the domain.
Definition revision.cpp:200
QString md5Checksum() const
Returns an MD5 checksum for the content of this revision.
Definition revision.cpp:235
UserPtr lastModifyingUser() const
Returns object representing the last user to modify this revision.
Definition revision.cpp:225
char * toString(const EngineQuery &query)
const QVariantMap toMap(const MODEL &model)
KCALUTILS_EXPORT QString mimeType()
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)
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 20 2024 11:59:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:59:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.