From 48bc0775e68cb6d7647287e90c3e69fde387003a Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 24 Sep 2022 17:34:50 +0200 Subject: FileShare: Fix documentation not generated --- src/base/QXmppFileShare.cpp | 19 +++++++++++++------ src/base/QXmppFileShare.h | 7 +------ 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'src/base') diff --git a/src/base/QXmppFileShare.cpp b/src/base/QXmppFileShare.cpp index c8975ba1..9c12ed27 100644 --- a/src/base/QXmppFileShare.cpp +++ b/src/base/QXmppFileShare.cpp @@ -49,7 +49,7 @@ public: /// \endcond /// -/// \class QXmppFileSharePrivate +/// \class QXmppFileShare /// /// File sharing element from \xep{0447, Stateless file sharing}. Contains /// metadata and source URLs. @@ -59,17 +59,20 @@ public: /// \since QXmpp 1.5 /// +/// +/// \enum QXmppFileShare::Disposition +/// +/// \brief Decides whether to display the file contents (e.g. an image) inline in the chat or as +/// a file. +/// + /// Default constructor QXmppFileShare::QXmppFileShare() : d(new QXmppFileSharePrivate) { } -QXmppFileShare::QXmppFileShare(const QXmppFileShare &) = default; -QXmppFileShare::QXmppFileShare(QXmppFileShare &&) noexcept = default; -QXmppFileShare::~QXmppFileShare() = default; -QXmppFileShare &QXmppFileShare::operator=(const QXmppFileShare &) = default; -QXmppFileShare &QXmppFileShare::operator=(QXmppFileShare &&) noexcept = default; +QXMPP_PRIVATE_DEFINE_RULE_OF_SIX(QXmppFileShare) /// Returns the disposition setting for this file. QXmppFileShare::Disposition QXmppFileShare::disposition() const @@ -83,21 +86,25 @@ void QXmppFileShare::setDisposition(Disposition disp) d->disposition = disp; } +/// Returns the metadata of the shared file. const QXmppFileMetadata &QXmppFileShare::metadata() const { return d->metadata; } +/// Sets the metadata of the shared file. void QXmppFileShare::setMetadata(const QXmppFileMetadata &metadata) { d->metadata = metadata; } +/// Returns the HTTP sources for this file. const QVector &QXmppFileShare::httpSources() const { return d->httpSources; } +/// Sets the HTTP sources for this file. void QXmppFileShare::setHttpSources(const QVector &newHttpSources) { d->httpSources = newHttpSources; diff --git a/src/base/QXmppFileShare.h b/src/base/QXmppFileShare.h index f2055576..30ea27cc 100644 --- a/src/base/QXmppFileShare.h +++ b/src/base/QXmppFileShare.h @@ -25,12 +25,7 @@ public: }; QXmppFileShare(); - QXmppFileShare(const QXmppFileShare &); - QXmppFileShare(QXmppFileShare &&) noexcept; - ~QXmppFileShare(); - - QXmppFileShare &operator=(const QXmppFileShare &); - QXmppFileShare &operator=(QXmppFileShare &&) noexcept; + QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppFileShare) Disposition disposition() const; void setDisposition(Disposition); -- cgit v1.2.3