KGAPI2::Drive::ParentReference

Search for usage in LXR

KGAPI2::Drive::ParentReference Class Reference

#include <parentreference.h>

Inheritance diagram for KGAPI2::Drive::ParentReference:

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
Author
Andrius da Costa Ribas andri.nosp@m.usma.nosp@m.o@gma.nosp@m.il.c.nosp@m.om
Daniel Vrátil dvrat.nosp@m.il@r.nosp@m.edhat.nosp@m..com

Definition at line 33 of file parentreference.h.

Constructor & Destructor Documentation

◆ ParentReference() [1/2]

ParentReference::ParentReference ( const QString & id)
explicit

Definition at line 63 of file parentreference.cpp.

◆ ParentReference() [2/2]

ParentReference::ParentReference ( const ParentReference & other)
explicit

Definition at line 70 of file parentreference.cpp.

◆ ~ParentReference()

ParentReference::~ParentReference ( )
override

Definition at line 76 of file parentreference.cpp.

Member Function Documentation

◆ fromJSON()

ParentReferencePtr ParentReference::fromJSON ( const QByteArray & jsonData)
static

Definition at line 113 of file parentreference.cpp.

◆ fromJSONFeed()

ParentReferencesList ParentReference::fromJSONFeed ( const QByteArray & jsonData)
static

Definition at line 124 of file parentreference.cpp.

◆ id()

QString ParentReference::id ( ) const

Returns the id of the parent.

Definition at line 93 of file parentreference.cpp.

◆ isRoot()

bool ParentReference::isRoot ( ) const

Returns whether or not the parent is the root folder.

Definition at line 108 of file parentreference.cpp.

◆ operator!=()

bool KGAPI2::Drive::ParentReference::operator!= ( const ParentReference & other) const
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()

QUrl ParentReference::parentLink ( ) const

Returns a link to the parent.

Definition at line 103 of file parentreference.cpp.

◆ selfLink()

QUrl ParentReference::selfLink ( ) const

Returns a link back to this reference.

Definition at line 98 of file parentreference.cpp.

◆ toJSON()

QByteArray ParentReference::toJSON ( const ParentReferencePtr & reference)
static

Definition at line 150 of file parentreference.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:52 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.