KGAPI2::People::Source
#include <source.h>
Public Types | |
enum class | Type { SOURCE_TYPE_UNSPECIFIED , ACCOUNT , PROFILE , DOMAIN_PROFILE , CONTACT , OTHER_CONTACT , DOMAIN_CONTACT } |
Public Member Functions | |
Source () | |
Source (const Source &) | |
Source (Source &&) noexcept | |
~Source () | |
QString | etag () const |
QString | id () const |
bool | operator!= (const Source &) const |
Source & | operator= (const Source &) |
Source & | operator= (Source &&) noexcept |
bool | operator== (const Source &) const |
ProfileMetadata | profileMetadata () const |
void | setEtag (const QString &value) |
void | setId (const QString &value) |
void | setType (Source::Type value) |
QJsonValue | toJSON () const |
Source::Type | type () const |
QString | updateTime () const |
Static Public Member Functions | |
static Source | fromJSON (const QJsonObject &) |
Detailed Description
The source of a field.
- Since
- 5.23.0
Member Enumeration Documentation
◆ Type
|
strong |
Enumerator | |
---|---|
SOURCE_TYPE_UNSPECIFIED | Unspecified. |
ACCOUNT | |
PROFILE |
You can view the profile at https://profiles.google.com/{id}, where {id} is the source id. |
DOMAIN_PROFILE | |
CONTACT |
You can view the contact at https://contact.google.com/{id}, where {id} is the source id. |
OTHER_CONTACT | |
DOMAIN_CONTACT |
Constructor & Destructor Documentation
◆ Source()
|
explicit |
Constructs a new Source.
Definition at line 51 of file source.cpp.
◆ ~Source()
|
default |
Destructor.
Member Function Documentation
◆ etag()
|
nodiscard |
Only populated in person.metadata.sources
.
The HTTP entity tag of the source. Used for web cache validation.
Definition at line 72 of file source.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 108 of file source.cpp.
◆ id()
|
nodiscard |
The unique identifier within the source type generated by the server.
Definition at line 85 of file source.cpp.
◆ operator!=()
bool KGAPI2::People::Source::operator!= | ( | const Source & | other | ) | const |
Definition at line 67 of file source.cpp.
◆ operator==()
bool KGAPI2::People::Source::operator== | ( | const Source & | other | ) | const |
Definition at line 62 of file source.cpp.
◆ profileMetadata()
|
nodiscard |
Output only.
Only populated in person.metadata.sources
. Metadata about a source of type PROFILE.
Definition at line 81 of file source.cpp.
◆ setEtag()
void KGAPI2::People::Source::setEtag | ( | const QString & | value | ) |
Sets value of the etag property.
Definition at line 77 of file source.cpp.
◆ setId()
void KGAPI2::People::Source::setId | ( | const QString & | value | ) |
Sets value of the id property.
Definition at line 90 of file source.cpp.
◆ setType()
void KGAPI2::People::Source::setType | ( | Source::Type | value | ) |
Sets value of the type property.
Definition at line 103 of file source.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 140 of file source.cpp.
◆ type()
|
nodiscard |
The source type.
Definition at line 98 of file source.cpp.
◆ updateTime()
|
nodiscard |
Output only.
Only populated in person.metadata.sources
. Last update timestamp of this source.
Definition at line 94 of file source.cpp.
The documentation for this class was generated from the following files:
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.