KGAPI2::People::Biography

Search for usage in LXR

#include <biography.h>

Public Types

enum class  ContentType { CONTENT_TYPE_UNSPECIFIED , TEXT_PLAIN , TEXT_HTML }
 

Public Member Functions

 Biography ()
 
 Biography (Biography &&) noexcept
 
 Biography (const Biography &)
 
 ~Biography ()
 
Biography::ContentType contentType () const
 
FieldMetadata metadata () const
 
bool operator!= (const Biography &) const
 
Biographyoperator= (Biography &&) noexcept
 
Biographyoperator= (const Biography &)
 
bool operator== (const Biography &) const
 
void setContentType (Biography::ContentType value)
 
void setMetadata (const FieldMetadata &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString value () const
 

Static Public Member Functions

static Biography fromJSON (const QJsonObject &obj)
 
static QList< BiographyfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's short biography.

See also
https://developers.google.com/people/api/rest/v1/people#biography
Since
5.23.0

Definition at line 33 of file biography.h.

Member Enumeration Documentation

◆ ContentType

Enumerator
CONTENT_TYPE_UNSPECIFIED 

Unspecified.

TEXT_PLAIN 

Plain text.

TEXT_HTML 

HTML text.

Definition at line 36 of file biography.h.

Constructor & Destructor Documentation

◆ Biography()

KGAPI2::People::Biography::Biography ( )
explicit

Constructs a new Biography.

Definition at line 49 of file biography.cpp.

◆ ~Biography()

KGAPI2::People::Biography::~Biography ( )
default

Destructor.

Member Function Documentation

◆ contentType()

Biography::Biography::ContentType KGAPI2::People::Biography::contentType ( ) const
nodiscard

The content type of the biography.

Definition at line 79 of file biography.cpp.

◆ fromJSON()

Biography KGAPI2::People::Biography::fromJSON ( const QJsonObject & obj)
staticnodiscard

Definition at line 98 of file biography.cpp.

◆ fromJSONArray()

QList< Biography > KGAPI2::People::Biography::fromJSONArray ( const QJsonArray & data)
staticnodiscard

Definition at line 121 of file biography.cpp.

◆ metadata()

FieldMetadata KGAPI2::People::Biography::metadata ( ) const
nodiscard

Metadata about the biography.

Definition at line 70 of file biography.cpp.

◆ operator!=()

bool KGAPI2::People::Biography::operator!= ( const Biography & other) const

Definition at line 65 of file biography.cpp.

◆ operator==()

bool KGAPI2::People::Biography::operator== ( const Biography & other) const

Definition at line 60 of file biography.cpp.

◆ setContentType()

void KGAPI2::People::Biography::setContentType ( Biography::ContentType value)

Sets value of the contentType property.

Definition at line 84 of file biography.cpp.

◆ setMetadata()

void KGAPI2::People::Biography::setMetadata ( const FieldMetadata & value)

Sets value of the metadata property.

Definition at line 75 of file biography.cpp.

◆ setValue()

void KGAPI2::People::Biography::setValue ( const QString & value)

Sets value of the value property.

Definition at line 93 of file biography.cpp.

◆ toJSON()

QJsonValue KGAPI2::People::Biography::toJSON ( ) const
nodiscard

Definition at line 135 of file biography.cpp.

◆ value()

QString KGAPI2::People::Biography::value ( ) const
nodiscard

The short biography.

Definition at line 88 of file biography.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.