![]() |
libQuotient
A Qt library for building matrix clients
|
Base for all content types that can be stored in RoomMessageEvent. More...
#include <eventcontent.h>

Public Member Functions | |
| Base (QJsonObject o={}) | |
| virtual | ~Base ()=default |
| QJsonObject | toJson () const |
| virtual QMimeType | type () const =0 |
| Base & | operator= (const Base &)=delete |
| Base & | operator= (Base &&)=delete |
Public Attributes | |
| QJsonObject | originalJson |
Protected Member Functions | |
| Base (const Base &)=delete | |
| Base (Base &&) noexcept=default | |
| virtual void | fillJson (QJsonObject &) const =0 |
Base for all content types that can be stored in RoomMessageEvent.
Each content type class should have a constructor taking a QJsonObject and override fillJson() with an implementation that will fill the target QJsonObject with stored values. It is assumed but not required that a content object can also be created from plain data.
Definition at line 35 of file eventcontent.h.
|
inlineexplicit |
Definition at line 37 of file eventcontent.h.
|
virtualdefault |
|
protecteddelete |
|
protecteddefaultnoexcept |
|
protectedpure virtual |
| QJsonObject Quotient::EventContent::Base::toJson | ( | ) | const |
|
pure virtual |
| QJsonObject Quotient::EventContent::Base::originalJson |
Definition at line 45 of file eventcontent.h.