KGAPI2::Drive::Revision

Search for usage in LXR

KGAPI2::Drive::Revision Class Reference

#include <revision.h>

Inheritance diagram for KGAPI2::Drive::Revision:

Public Member Functions

 Revision (const Revision &other)
 
QUrl downloadUrl () const
 
QMap< QString, QUrlexportLinks () const
 
qlonglong fileSize () const
 
QString id () const
 
UserPtr lastModifyingUser () const
 
QString lastModifyingUserName () const
 
QString md5Checksum () const
 
QString mimeType () const
 
QDateTime modifiedDate () const
 
bool operator!= (const Revision &other) const
 
bool operator== (const Revision &other) const
 
QString originalFilename () const
 
bool pinned () const
 
bool publishAuto () const
 
bool published () const
 
QUrl publishedLink () const
 
bool publishedOutsideDomain () const
 
QUrl selfLink () const
 
void setPinned (bool pinned)
 
void setPublishAuto (bool publishAuto)
 
void setPublished (bool published)
 
void setPublishedOutsideDomain (bool publishedOutsideDomain)
 
- Public Member Functions inherited from KGAPI2::Object
 Object ()
 
 Object (const Object &other)
 
virtual ~Object ()
 
QString etag () const
 
bool operator== (const Object &other) const
 
void setEtag (const QString &etag)
 

Static Public Member Functions

static RevisionPtr fromJSON (const QByteArray &jsonData)
 
static RevisionsList fromJSONFeed (const QByteArray &jsonData)
 
static QByteArray toJSON (const RevisionPtr &revision)
 

Detailed Description

Revision contains a revision of a file.

Getters and setters' documentation is based on Google Drive's API v2 reference

See also
Revisions
Since
2.0
Author
Andrius da Costa Ribas andri[email protected]usma[email protected][email protected][email protected]il.c[email protected]om
Daniel Vr├ítil dvrat[email protected][email protected][email protected]edhat[email protected].com

Definition at line 34 of file revision.h.

Member Function Documentation

QUrl Revision::downloadUrl ( ) const

Returns a short term download URL for the file.

This will only be populated on files with content stored in Drive.

Definition at line 212 of file revision.cpp.

QMap< QString, QUrl > Revision::exportLinks ( ) const

Returns the links for exporting Google Docs to specific formats.

This is a map from the export format to URL.

Definition at line 217 of file revision.cpp.

qlonglong Revision::fileSize ( ) const

Returns the size of the revision in bytes.

This will only be populated on files with content stored in Drive.

Definition at line 242 of file revision.cpp.

QString Revision::id ( ) const

Returns the id of the revision.

Definition at line 147 of file revision.cpp.

UserPtr Revision::lastModifyingUser ( ) const

Returns object representing the last user to modify this revision.

Definition at line 227 of file revision.cpp.

QString Revision::lastModifyingUserName ( ) const

Returns the name of the last user to modify this revision.

Definition at line 222 of file revision.cpp.

QString Revision::md5Checksum ( ) const

Returns an MD5 checksum for the content of this revision.

This will only be populated on files with content stored in Drive

Definition at line 237 of file revision.cpp.

QString Revision::mimeType ( ) const

Returns the MIME type of the revision.

Definition at line 157 of file revision.cpp.

QDateTime Revision::modifiedDate ( ) const

Returns the last time this revision was modified.

Definition at line 162 of file revision.cpp.

QString Revision::originalFilename ( ) const

Returns the original filename when this revision was created.

This will only be populated on files with content stored in Drive.

Definition at line 232 of file revision.cpp.

bool Revision::pinned ( ) const

Returns whether this revision is pinned to prevent automatic purging.

This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs.

Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.

Definition at line 167 of file revision.cpp.

bool Revision::publishAuto ( ) const

Returns whether subsequent revisions will be automatically republished.

This is only populated and can only be modified for Google Docs.

Definition at line 192 of file revision.cpp.

bool Revision::published ( ) const

Returns whether this revision is published.

This is only populated and can only be modified for Google Docs.

Definition at line 177 of file revision.cpp.

QUrl Revision::publishedLink ( ) const

Returns a link to the published revision.

Definition at line 187 of file revision.cpp.

bool Revision::publishedOutsideDomain ( ) const

Returns whether this revision is published outside the domain.

This is only populated and can only be modified for Google Docs.

Definition at line 202 of file revision.cpp.

QUrl Revision::selfLink ( ) const

Returns a link back to this revision.

Definition at line 152 of file revision.cpp.

void Revision::setPinned ( bool  pinned)

Sets whether this revision is pinned to prevent automatic purging.

This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs.

Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.

Parameters
pinned

Definition at line 172 of file revision.cpp.

void Revision::setPublishAuto ( bool  publishAuto)

Sets whether subsequent revisions will be automatically republished.

This is only populated and can only be modified for Google Docs.

Parameters
publishAuto

Definition at line 197 of file revision.cpp.

void Revision::setPublished ( bool  published)

Sets whether this revision is published.

Parameters
published

Definition at line 182 of file revision.cpp.

void Revision::setPublishedOutsideDomain ( bool  publishedOutsideDomain)

Sets whether this revision is published outside the domain.

This is only populated and can only be modified for Google Docs.

Parameters
publishedOutsideDomain

Definition at line 207 of file revision.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Sep 20 2021 23:12:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.