libQuotient
A Qt library for building matrix clients
|
Rich text content for m.text, m.emote, m.notice. More...
#include <eventcontent.h>
Public Member Functions | |
TextContent (QString text, const QString &contentType) | |
TextContent (const QJsonObject &json) | |
QMimeType | type () const override |
Public Member Functions inherited from Quotient::EventContent::Base | |
Base (QJsonObject o={}) | |
virtual | ~Base ()=default |
QJsonObject | toJson () const |
Base & | operator= (const Base &)=delete |
Base & | operator= (Base &&)=delete |
Public Attributes | |
QMimeType | mimeType |
QString | body |
Public Attributes inherited from Quotient::EventContent::Base | |
QJsonObject | originalJson |
Protected Member Functions | |
void | fillJson (QJsonObject &json) const override |
Protected Member Functions inherited from Quotient::EventContent::Base | |
Base (const Base &)=default | |
Base (Base &&) noexcept=default | |
Rich text content for m.text, m.emote, m.notice.
Available fields: mimeType, body. The body can be either rich text or plain text, depending on what mimeType specifies.
Definition at line 185 of file eventcontent.h.
Quotient::EventContent::TextContent::TextContent | ( | QString | text, |
const QString & | contentType | ||
) |
|
explicit |
|
overrideprotectedvirtual |
Implements Quotient::EventContent::Base.
|
inlineoverridevirtual |
Implements Quotient::EventContent::Base.
Definition at line 190 of file eventcontent.h.
QString Quotient::EventContent::TextContent::body |
Definition at line 193 of file eventcontent.h.
QMimeType Quotient::EventContent::TextContent::mimeType |
Definition at line 192 of file eventcontent.h.