KGAPI2::People::CoverPhoto
#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 |
CoverPhoto & | operator= (const CoverPhoto &) |
CoverPhoto & | operator= (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< CoverPhoto > | fromJSONArray (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.
- Since
- 5.23.0
Definition at line 34 of file coverphoto.h.
Constructor & Destructor Documentation
◆ CoverPhoto()
|
explicit |
Constructs a new CoverPhoto.
Definition at line 49 of file coverphoto.cpp.
◆ ~CoverPhoto()
|
default |
Destructor.
Member Function Documentation
◆ fromJSON()
|
staticnodiscard |
Definition at line 98 of file coverphoto.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 112 of file coverphoto.cpp.
◆ isDefault()
|
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()
|
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()
|
nodiscard |
Definition at line 126 of file coverphoto.cpp.
◆ url()
|
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:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.