QXmppFileMetadata Class

Header: #include <QXmppFileMetadata>
Since: QXmpp 1.5

Public Functions

const std::optional<QString> &description() const
std::optional<QString> filename() const
const QVector<QXmppHash> &hashes() const
std::optional<uint32_t> height() const
const std::optional<QDateTime> &lastModified() const
std::optional<uint32_t> length() const
const std::optional<QMimeType> &mediaType() const
void setDescription(const std::optional<QString> &description)
void setFilename(std::optional<QString> name)
void setHashes(const QVector<QXmppHash> &hashes)
void setHeight(std::optional<uint32_t> height)
void setLastModified(const std::optional<QDateTime> &date)
void setLength(std::optional<uint32_t> length)
void setMediaType(std::optional<QMimeType> mediaType)
void setSize(std::optional<uint64_t> size)
void setThumbnails(const QVector<QXmppThumbnail> &thumbnail)
void setWidth(std::optional<uint32_t> width)
std::optional<uint64_t> size() const
const QVector<QXmppThumbnail> &thumbnails() const
std::optional<uint32_t> width() const

Static Public Members

QXmppFileMetadata fromFileInfo(const QFileInfo &info)

Detailed Description

File metadata from XEP-0446: File metadata element.

info.

Member Function Documentation

const std::optional<QString> &QXmppFileMetadata::description() const

Returns the description of the file

See also setDescription().

std::optional<QString> QXmppFileMetadata::filename() const

Returns the filename

See also setFilename().

[static] QXmppFileMetadata QXmppFileMetadata::fromFileInfo(const QFileInfo &info)

Creates a QXmppFileMetadata object from information from QFileInfo.

Sets the filename, file size, media type and the last modification date.

info.

const QVector<QXmppHash> &QXmppFileMetadata::hashes() const

Returns the hashes of the file

See also setHashes().

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

Returns the height of the image

See also setHeight().

const std::optional<QDateTime> &QXmppFileMetadata::lastModified() const

Returns when the file was last modified

See also setLastModified().

std::optional<uint32_t> QXmppFileMetadata::length() const

Returns the length of a video or audio file

See also setLength().

const std::optional<QMimeType> &QXmppFileMetadata::mediaType() const

Returns the media type of the file

See also setMediaType().

void QXmppFileMetadata::setDescription(const std::optional<QString> &description)

Sets the description of the file

See also description().

void QXmppFileMetadata::setFilename(std::optional<QString> name)

Sets the filename

name.

See also filename().

void QXmppFileMetadata::setHashes(const QVector<QXmppHash> &hashes)

Sets the hashes of the file

See also hashes().

void QXmppFileMetadata::setHeight(std::optional<uint32_t> height)

Sets the height of the image

See also height().

void QXmppFileMetadata::setLastModified(const std::optional<QDateTime> &date)

Sets when the file was last modified

date.

See also lastModified().

void QXmppFileMetadata::setLength(std::optional<uint32_t> length)

Sets the length of a video or audio file

See also length().

void QXmppFileMetadata::setMediaType(std::optional<QMimeType> mediaType)

Sets the media type of the file

mediaType.

See also mediaType().

void QXmppFileMetadata::setSize(std::optional<uint64_t> size)

Sets the size of the file in bytes

See also size().

void QXmppFileMetadata::setThumbnails(const QVector<QXmppThumbnail> &thumbnail)

Sets the thumbnail references.

See also thumbnails().

void QXmppFileMetadata::setWidth(std::optional<uint32_t> width)

Sets the width of the image or video.

See also width().

std::optional<uint64_t> QXmppFileMetadata::size() const

Returns the size of the file in bytes

See also setSize().

const QVector<QXmppThumbnail> &QXmppFileMetadata::thumbnails() const

Returns the thumbnail references.

See also setThumbnails().

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

Returns the width of the image or video.

See also setWidth().