libQuotient
A Qt library for building matrix clients
|
A template class for content types with a URL and additional info. More...
#include <eventcontent.h>
Public Member Functions | |
UrlBasedContent (const QJsonObject &json) | |
QMimeType | type () const override |
QUrl | url () const override |
FileInfo | commonInfo () const override |
Public Member Functions inherited from Quotient::EventContent::FileContentBase | |
FileContentBase (const QJsonObject &contentJson={}) | |
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 |
Protected Member Functions | |
QJsonObject | makeInfoJson () const override |
Protected Member Functions inherited from Quotient::EventContent::FileContentBase | |
void | fillJson (QJsonObject &json) const override |
Protected Member Functions inherited from Quotient::EventContent::Base | |
Base (const Base &)=default | |
Base (Base &&) noexcept=default | |
Additional Inherited Members | |
Public Attributes inherited from Quotient::EventContent::FileContentBase | |
Thumbnail | thumbnail |
Public Attributes inherited from Quotient::EventContent::Base | |
QJsonObject | originalJson |
A template class for content types with a URL and additional info.
Types that derive from this class template take url
(or, if the file is encrypted, file
) and, optionally, filename
values from the top-level JSON object and the rest of information from the info
subobject, as defined by the parameter type.
Definition at line 233 of file eventcontent.h.
|
inlineexplicit |
Definition at line 236 of file eventcontent.h.
|
inlineoverridevirtual |
Implements Quotient::EventContent::FileContentBase.
Definition at line 248 of file eventcontent.h.
|
inlineoverrideprotectedvirtual |
Implements Quotient::EventContent::FileContentBase.
Reimplemented in Quotient::EventContent::PlayableContent< InfoT >.
Definition at line 251 of file eventcontent.h.
|
inlineoverridevirtual |
Implements Quotient::EventContent::Base.
Definition at line 246 of file eventcontent.h.
|
inlineoverridevirtual |
Implements Quotient::EventContent::FileContentBase.
Definition at line 247 of file eventcontent.h.