KGAPI2::People::CoverPhoto

Search for usage in LXR

KGAPI2::People::CoverPhoto Class Reference

#include <coverphoto.h>

Public Member Functions

 CoverPhoto ()
 
 CoverPhoto (const CoverPhoto &)
 
 CoverPhoto (CoverPhoto &&) noexcept
 
 ~CoverPhoto ()
 
bool isDefault () const
 
FieldMetadata metadata () const
 
bool operator!= (const CoverPhoto &) const
 
CoverPhotooperator= (const CoverPhoto &)
 
CoverPhotooperator= (CoverPhoto &&) noexcept
 
bool operator== (const CoverPhoto &) const
 
void setIsDefault (bool value)
 
void setMetadata (const FieldMetadata &value)
 
void setUrl (const QString &value)
 
QJsonValue toJSON () const
 
QString url () const
 

Static Public Member Functions

static CoverPhoto fromJSON (const QJsonObject &obj)
 
static QList< CoverPhotofromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's cover photo.

A large image shown on the person's profile page that represents who they are or what they care about.

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

Definition at line 34 of file coverphoto.h.

Constructor & Destructor Documentation

◆ CoverPhoto()

KGAPI2::People::CoverPhoto::CoverPhoto ( )
explicit

Constructs a new CoverPhoto.

Definition at line 49 of file coverphoto.cpp.

◆ ~CoverPhoto()

KGAPI2::People::CoverPhoto::~CoverPhoto ( )
default

Destructor.

Member Function Documentation

◆ fromJSON()

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

Definition at line 98 of file coverphoto.cpp.

◆ fromJSONArray()

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

Definition at line 112 of file coverphoto.cpp.

◆ isDefault()

bool KGAPI2::People::CoverPhoto::isDefault ( ) const
nodiscard

True if the cover photo is the default cover photo; false if the cover photo is a user-provided cover photo.

Definition at line 70 of file coverphoto.cpp.

◆ metadata()

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

Metadata about the cover photo.

Definition at line 79 of file coverphoto.cpp.

◆ operator!=()

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

Definition at line 65 of file coverphoto.cpp.

◆ operator==()

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

Definition at line 60 of file coverphoto.cpp.

◆ setIsDefault()

void KGAPI2::People::CoverPhoto::setIsDefault ( bool value)

Sets value of the isDefault property.

Definition at line 75 of file coverphoto.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 84 of file coverphoto.cpp.

◆ setUrl()

void KGAPI2::People::CoverPhoto::setUrl ( const QString & value)

Sets value of the url property.

Definition at line 93 of file coverphoto.cpp.

◆ toJSON()

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

Definition at line 126 of file coverphoto.cpp.

◆ url()

QString KGAPI2::People::CoverPhoto::url ( ) const
nodiscard

The URL of the cover photo.

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