KGAPI2::People::UserDefined

Search for usage in LXR

KGAPI2::People::UserDefined Class Reference

#include <userdefined.h>

Public Member Functions

 UserDefined ()
 
 UserDefined (const UserDefined &)
 
 UserDefined (UserDefined &&) noexcept
 
 ~UserDefined ()
 
QString key () const
 
FieldMetadata metadata () const
 
bool operator!= (const UserDefined &) const
 
UserDefinedoperator= (const UserDefined &)
 
UserDefinedoperator= (UserDefined &&) noexcept
 
bool operator== (const UserDefined &) const
 
void setKey (const QString &value)
 
void setMetadata (const FieldMetadata &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString value () const
 

Static Public Member Functions

static UserDefined fromJSON (const QJsonObject &)
 
static QList< UserDefinedfromJSONArray (const QJsonArray &data)
 

Detailed Description

Arbitrary user data that is populated by the end users.

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

Definition at line 33 of file userdefined.h.

Constructor & Destructor Documentation

◆ UserDefined()

KGAPI2::People::UserDefined::UserDefined ( )
explicit

Constructs a new UserDefined.

Definition at line 49 of file userdefined.cpp.

◆ ~UserDefined()

KGAPI2::People::UserDefined::~UserDefined ( )
default

Destructor.

Member Function Documentation

◆ fromJSON()

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

Definition at line 98 of file userdefined.cpp.

◆ fromJSONArray()

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

Definition at line 112 of file userdefined.cpp.

◆ key()

QString KGAPI2::People::UserDefined::key ( ) const
nodiscard

The end user specified key of the user defined data.

Definition at line 79 of file userdefined.cpp.

◆ metadata()

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

Metadata about the user defined data.

Definition at line 88 of file userdefined.cpp.

◆ operator!=()

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

Definition at line 65 of file userdefined.cpp.

◆ operator==()

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

Definition at line 60 of file userdefined.cpp.

◆ setKey()

void KGAPI2::People::UserDefined::setKey ( const QString & value)

Sets value of the key property.

Definition at line 84 of file userdefined.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 93 of file userdefined.cpp.

◆ setValue()

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

Sets value of the value property.

Definition at line 75 of file userdefined.cpp.

◆ toJSON()

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

Definition at line 126 of file userdefined.cpp.

◆ value()

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

The end user specified value of the user defined data.

Definition at line 70 of file userdefined.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 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.