diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-09-24 17:34:50 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-24 18:11:58 +0200 |
| commit | 48bc0775e68cb6d7647287e90c3e69fde387003a (patch) | |
| tree | 6326aaa03d7da21fd71082f1df19e81e7b92eb42 /src/base | |
| parent | 823826f15e669524e037247e58d8b1aba86588b8 (diff) | |
| download | qxmpp-48bc0775e68cb6d7647287e90c3e69fde387003a.tar.gz | |
FileShare: Fix documentation not generated
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/QXmppFileShare.cpp | 19 | ||||
| -rw-r--r-- | src/base/QXmppFileShare.h | 7 |
2 files changed, 14 insertions, 12 deletions
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<QXmppHttpFileSource> &QXmppFileShare::httpSources() const { return d->httpSources; } +/// Sets the HTTP sources for this file. void QXmppFileShare::setHttpSources(const QVector<QXmppHttpFileSource> &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); |
