KGAPI2::Drive::ParentReference
#include <parentreference.h>
Public Member Functions | |
ParentReference (const ParentReference &other) | |
ParentReference (const QString &id) | |
QString | id () const |
bool | isRoot () const |
bool | operator!= (const ParentReference &other) const |
bool | operator== (const ParentReference &other) const |
QUrl | parentLink () const |
QUrl | selfLink () const |
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 ParentReferencePtr | fromJSON (const QByteArray &jsonData) |
static ParentReferencesList | fromJSONFeed (const QByteArray &jsonData) |
static QByteArray | toJSON (const ParentReferencePtr &reference) |
Detailed Description
ParentReference contains a reference to a file's parent.
Getters and setters' documentation is based on Google Drive's API v2 reference
- See also
- Parents
- Since
- 2.0
Definition at line 33 of file parentreference.h.
Constructor & Destructor Documentation
◆ ParentReference() [1/2]
|
explicit |
Definition at line 63 of file parentreference.cpp.
◆ ParentReference() [2/2]
|
explicit |
Definition at line 70 of file parentreference.cpp.
◆ ~ParentReference()
|
override |
Definition at line 76 of file parentreference.cpp.
Member Function Documentation
◆ fromJSON()
|
static |
Definition at line 113 of file parentreference.cpp.
◆ fromJSONFeed()
|
static |
Definition at line 124 of file parentreference.cpp.
◆ id()
|
nodiscard |
Returns the id of the parent.
Definition at line 93 of file parentreference.cpp.
◆ isRoot()
|
nodiscard |
Returns whether or not the parent is the root folder.
Definition at line 108 of file parentreference.cpp.
◆ operator!=()
|
inline |
Definition at line 40 of file parentreference.h.
◆ operator==()
bool ParentReference::operator== | ( | const ParentReference & | other | ) | const |
Definition at line 81 of file parentreference.cpp.
◆ parentLink()
|
nodiscard |
Returns a link to the parent.
Definition at line 103 of file parentreference.cpp.
◆ selfLink()
|
nodiscard |
Returns a link back to this reference.
Definition at line 98 of file parentreference.cpp.
◆ toJSON()
|
static |
Definition at line 150 of file parentreference.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.