KGAPI2::People::Source

Search for usage in LXR

#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
 
Sourceoperator= (const Source &)
 
Sourceoperator= (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.

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

Definition at line 32 of file source.h.

Member Enumeration Documentation

◆ Type

enum class KGAPI2::People::Source::Type
strong
Enumerator
SOURCE_TYPE_UNSPECIFIED 

Unspecified.

ACCOUNT 

Google Account.

PROFILE 

Google profile.

You can view the profile at https://profiles.google.com/{id}, where {id} is the source id.

DOMAIN_PROFILE 

Google Workspace domain profile.

CONTACT 

Google contact.

You can view the contact at https://contact.google.com/{id}, where {id} is the source id.

OTHER_CONTACT 

Google "Other contact".

DOMAIN_CONTACT 

Google Workspace domain shared contact.

Definition at line 35 of file source.h.

Constructor & Destructor Documentation

◆ Source()

KGAPI2::People::Source::Source ( )
explicit

Constructs a new Source.

Definition at line 51 of file source.cpp.

◆ ~Source()

KGAPI2::People::Source::~Source ( )
default

Destructor.

Member Function Documentation

◆ etag()

QString KGAPI2::People::Source::etag ( ) const
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()

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

Definition at line 108 of file source.cpp.

◆ id()

QString KGAPI2::People::Source::id ( ) const
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()

ProfileMetadata KGAPI2::People::Source::profileMetadata ( ) const
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()

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

Definition at line 140 of file source.cpp.

◆ type()

Source::Source::Type KGAPI2::People::Source::type ( ) const
nodiscard

The source type.

Definition at line 98 of file source.cpp.

◆ updateTime()

QString KGAPI2::People::Source::updateTime ( ) const
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.