KGAPI2::Drive::ChildReference

Search for usage in LXR

KGAPI2::Drive::ChildReference Class Reference

#include <childreference.h>

Inheritance diagram for KGAPI2::Drive::ChildReference:

Public Member Functions

 ChildReference (const ChildReference &other)
 
 ChildReference (const QString &id)
 
QUrl childLink () const
 
QString id () const
 
bool operator!= (const ChildReference &other) const
 
bool operator== (const ChildReference &other) 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 ChildReferencePtr fromJSON (const QByteArray &jsonData)
 
static ChildReferencesList fromJSONFeed (const QByteArray &jsonData, FeedData &feedData)
 
static QByteArray toJSON (const ChildReferencePtr &reference)
 

Detailed Description

ChildReference contains a reference to a folder's child.

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

See also
Children
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 32 of file childreference.h.

Constructor & Destructor Documentation

◆ ChildReference() [1/2]

ChildReference::ChildReference ( const QString & id)
explicit

Definition at line 53 of file childreference.cpp.

◆ ChildReference() [2/2]

ChildReference::ChildReference ( const ChildReference & other)
explicit

Definition at line 60 of file childreference.cpp.

◆ ~ChildReference()

ChildReference::~ChildReference ( )
override

Definition at line 66 of file childreference.cpp.

Member Function Documentation

◆ childLink()

QUrl ChildReference::childLink ( ) const
nodiscard

Returns a link to the child.

Definition at line 92 of file childreference.cpp.

◆ fromJSON()

ChildReferencePtr ChildReference::fromJSON ( const QByteArray & jsonData)
static

Definition at line 97 of file childreference.cpp.

◆ fromJSONFeed()

ChildReferencesList ChildReference::fromJSONFeed ( const QByteArray & jsonData,
FeedData & feedData )
static

Definition at line 108 of file childreference.cpp.

◆ id()

QString ChildReference::id ( ) const
nodiscard

Returns the id of the child.

Definition at line 82 of file childreference.cpp.

◆ operator!=()

bool KGAPI2::Drive::ChildReference::operator!= ( const ChildReference & other) const
inline

Definition at line 39 of file childreference.h.

◆ operator==()

bool ChildReference::operator== ( const ChildReference & other) const

Definition at line 71 of file childreference.cpp.

◆ selfLink()

QUrl ChildReference::selfLink ( ) const
nodiscard

Returns a link back to this reference.

Definition at line 87 of file childreference.cpp.

◆ toJSON()

QByteArray ChildReference::toJSON ( const ChildReferencePtr & reference)
static

Definition at line 138 of file childreference.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 Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.