QXmppThumbnail Class

Header: #include <QXmppThumbnail>
Since: QXmpp 1.5

Public Functions

QXmppThumbnail()
QXmppThumbnail(const QXmppThumbnail &)
QXmppThumbnail(QXmppThumbnail &&)
std::optional<uint32_t> height() const
const QMimeType &mediaType() const
void setHeight(std::optional<uint32_t> newHeight)
void setMediaType(const QMimeType &newMediaType)
void setUri(const QString &newUri)
void setWidth(std::optional<uint32_t> newWidth)
const QString &uri() const
std::optional<uint32_t> width() const
QXmppThumbnail &operator=(QXmppThumbnail &&)
QXmppThumbnail &operator=(const QXmppThumbnail &)

Detailed Description

Thumbnail from XEP-0264: Jingle Content Thumbnails.

Member Function Documentation

QXmppThumbnail::QXmppThumbnail()

Default constructor

QXmppThumbnail::QXmppThumbnail(const QXmppThumbnail &)

Default copy-constructor

[noexcept] QXmppThumbnail::QXmppThumbnail(QXmppThumbnail &&)

Default move-constructor

std::optional<uint32_t> QXmppThumbnail::height() const

Returns the height of the thumbnail image.

See also setHeight().

const QMimeType &QXmppThumbnail::mediaType() const

Returns the MIME type of the thumbnail data.

See also setMediaType().

void QXmppThumbnail::setHeight(std::optional<uint32_t> newHeight)

Sets the height of the thumbnail image.

newHeight.

See also height().

void QXmppThumbnail::setMediaType(const QMimeType &newMediaType)

Sets the MIME type of the thumbnail data.

newMediaType.

See also mediaType().

void QXmppThumbnail::setUri(const QString &newUri)

Sets the URI with the location for the data (usually a XEP-0231: Bits of Binary content ID)

newUri.

See also uri().

void QXmppThumbnail::setWidth(std::optional<uint32_t> newWidth)

Sets the width of the thumbnail image.

newWidth.

See also width().

const QString &QXmppThumbnail::uri() const

Returns the URI with the location for the data (usually a XEP-0231: Bits of Binary content ID)

See also setUri().

std::optional<uint32_t> QXmppThumbnail::width() const

Returns the width of the thumbnail image.

See also setWidth().

[noexcept] QXmppThumbnail &QXmppThumbnail::operator=(QXmppThumbnail &&)

Default move-assignment operator

QXmppThumbnail &QXmppThumbnail::operator=(const QXmppThumbnail &)

Default assignment operator