KGAPI2::Drive::About
#include <about.h>

Classes | |
class | AdditionalRoleInfo |
class | Feature |
class | Format |
class | MaxUploadSize |
Public Types | |
using | AdditionalRoleInfoPtr = QSharedPointer< AdditionalRoleInfo > |
using | AdditionalRoleInfosList = QList< AdditionalRoleInfoPtr > |
using | FeaturePtr = QSharedPointer< Feature > |
using | FeaturesList = QList< FeaturePtr > |
using | FormatPtr = QSharedPointer< Format > |
using | FormatsList = QList< FormatPtr > |
using | MaxUploadSizePtr = QSharedPointer< MaxUploadSize > |
using | MaxUploadSizesList = QList< MaxUploadSizePtr > |
Public Member Functions | |
About (const About &other) | |
AdditionalRoleInfosList | additionalRoleInfo () const |
bool | canCreateDrives () const |
QString | domainSharingPolicy () const |
FormatsList | exportFormats () const |
FeaturesList | features () const |
FormatsList | importFormats () const |
bool | isCurrentAppInstalled () const |
qlonglong | largestChangeId () const |
MaxUploadSizesList | maxUploadSizes () const |
QString | name () const |
bool | operator!= (const About &other) const |
bool | operator== (const About &other) const |
QString | permissionId () const |
qlonglong | quotaBytesTotal () const |
qlonglong | quotaBytesUsed () const |
qlonglong | quotaBytesUsedAggregate () const |
qlonglong | quotaBytesUsedInTrash () const |
KGAPIDRIVE_DEPRECATED qlonglong | quotaBytesUserAggregate () const |
qlonglong | remainingChangeIds () const |
QString | rootFolderId () const |
QUrl | selfLink () const |
UserPtr | user () const |
![]() | |
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 AboutPtr | fromJSON (const QByteArray &jsonData) |
Detailed Description
DriveAbout contains information about the current user along with Google Drive API settings.
Getters and setters' documentation is based on Google Drive's API v2 reference
- See also
- About
- Since
- 2.0
Member Function Documentation
AdditionalRoleInfosList KGAPI2::Drive::About::additionalRoleInfo | ( | ) | const |
Returns information about supported additional roles per file type.
The most specific type takes precedence.
bool KGAPI2::Drive::About::canCreateDrives | ( | ) | const |
Returns whether the user can create shared drives.
QString KGAPI2::Drive::About::domainSharingPolicy | ( | ) | const |
Returns the domain sharing policy for the current user.
FormatsList KGAPI2::Drive::About::exportFormats | ( | ) | const |
Returns the allowable export formats.
FeaturesList KGAPI2::Drive::About::features | ( | ) | const |
Returns the list of additional features enabled on this account.
|
static |
Constructs a new DriveAbout object from given JSON data.
- Parameters
-
jsonData
FormatsList KGAPI2::Drive::About::importFormats | ( | ) | const |
Returns the allowable import formats.
bool KGAPI2::Drive::About::isCurrentAppInstalled | ( | ) | const |
Returns whether the authenticated app is installed by the authenticated user.
qlonglong KGAPI2::Drive::About::largestChangeId | ( | ) | const |
Returns the largest change id.
MaxUploadSizesList KGAPI2::Drive::About::maxUploadSizes | ( | ) | const |
Returns the list of max upload sizes for each file type.
The most specific type takes precedence.
QString KGAPI2::Drive::About::name | ( | ) | const |
Returns the name of the current user.
QString KGAPI2::Drive::About::permissionId | ( | ) | const |
Returns the current user's ID as visible in the permissions collection.
qlonglong KGAPI2::Drive::About::quotaBytesTotal | ( | ) | const |
Returns the total number of quota bytes.
qlonglong KGAPI2::Drive::About::quotaBytesUsed | ( | ) | const |
Returns the total number of quota bytes used.
qlonglong KGAPI2::Drive::About::quotaBytesUsedAggregate | ( | ) | const |
returns the total number of quota bytes used by all Google apps (Drive, Picasa, etc.).
- Since
- 5.3.2
qlonglong KGAPI2::Drive::About::quotaBytesUsedInTrash | ( | ) | const |
Returns the total number of quota bytes used by trashed items.
KGAPIDRIVE_DEPRECATED qlonglong KGAPI2::Drive::About::quotaBytesUserAggregate | ( | ) | const |
returns the total number of quota bytes used by all Google apps (Drive, Picasa, etc.).
- Deprecated:
- since 5.3.2, use quotaBytesUsedAggregate() instead.
qlonglong KGAPI2::Drive::About::remainingChangeIds | ( | ) | const |
Returns the number of remaining change ids.
QString KGAPI2::Drive::About::rootFolderId | ( | ) | const |
Returns the id of the root folder.
QUrl KGAPI2::Drive::About::selfLink | ( | ) | const |
Returns the link back to this item.
UserPtr KGAPI2::Drive::About::user | ( | ) | const |
Returns the authenticated user.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 16 2021 23:13:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.