KGAPI2::People::Event

Search for usage in LXR

#include <event.h>

Public Member Functions

 Event ()
 
 Event (const Event &)
 
 Event (Event &&) noexcept
 
 ~Event ()
 
QDate date () const
 
QString formattedType () const
 
FieldMetadata metadata () const
 
bool operator!= (const Event &) const
 
Eventoperator= (const Event &)
 
Eventoperator= (Event &&) noexcept
 
bool operator== (const Event &) const
 
void setDate (const QDate &value)
 
void setMetadata (const FieldMetadata &value)
 
void setType (const QString &value)
 
QJsonValue toJSON () const
 
QString type () const
 

Static Public Member Functions

static Event fromJSON (const QJsonObject &obj)
 
static QList< EventfromJSONArray (const QJsonArray &data)
 

Detailed Description

An event related to the person.

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

Definition at line 34 of file people/event.h.

Constructor & Destructor Documentation

◆ Event()

KGAPI2::People::Event::Event ( )
explicit

Constructs a new Event.

Definition at line 50 of file people/event.cpp.

◆ ~Event()

KGAPI2::People::Event::~Event ( )
default

Destructor.

Member Function Documentation

◆ date()

QDate KGAPI2::People::Event::date ( ) const
nodiscard

The date of the event.

Definition at line 80 of file people/event.cpp.

◆ formattedType()

QString KGAPI2::People::Event::formattedType ( ) const
nodiscard

Output only.

The type of the event translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale.

Definition at line 98 of file people/event.cpp.

◆ fromJSON()

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

Definition at line 103 of file people/event.cpp.

◆ fromJSONArray()

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

Definition at line 124 of file people/event.cpp.

◆ metadata()

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

Metadata about the event.

Definition at line 71 of file people/event.cpp.

◆ operator!=()

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

Definition at line 66 of file people/event.cpp.

◆ operator==()

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

Definition at line 61 of file people/event.cpp.

◆ setDate()

void KGAPI2::People::Event::setDate ( const QDate & value)

Sets value of the date property.

Definition at line 85 of file people/event.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 76 of file people/event.cpp.

◆ setType()

void KGAPI2::People::Event::setType ( const QString & value)

Sets value of the type property.

Definition at line 94 of file people/event.cpp.

◆ toJSON()

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

Definition at line 138 of file people/event.cpp.

◆ type()

QString KGAPI2::People::Event::type ( ) const
nodiscard

The type of the event.

The type can be custom or one of these predefined values: * anniversary * other

Definition at line 89 of file people/event.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 Fri Oct 11 2024 12:19:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.