5#ifndef QXMPPTHUMBNAIL_H
6#define QXMPPTHUMBNAIL_H
8#include "QXmppGlobal.h"
12#include <QSharedDataPointer>
16class QXmlStreamWriter;
17class QXmppThumbnailPrivate;
30 const QString &uri() const;
31 void setUri(const QString &newUri);
33 const QMimeType &mediaType() const;
34 void setMediaType(const QMimeType &);
36 std::optional<uint32_t> width() const;
37 void setWidth(std::optional<uint32_t>);
39 std::optional<uint32_t> height() const;
40 void setHeight(std::optional<uint32_t>);
43 bool parse(const QDomElement &);
44 void toXml(QXmlStreamWriter *writer) const;
48 QSharedDataPointer<QXmppThumbnailPrivate> d;
Definition: QXmppThumbnail.h:20
QXmppThumbnail(const QXmppThumbnail &)
Default copy-constructor.
QXmppThumbnail(QXmppThumbnail &&) noexcept
Default move-constructor.