libQuotient
A Qt library for building matrix clients
|
An auxiliary class for an info type that carries a thumbnail. More...
#include <eventcontent.h>
Additional Inherited Members | |
Public Attributes inherited from Quotient::EventContent::ImageInfo | |
QSize | imageSize |
Public Attributes inherited from Quotient::EventContent::FileInfo | |
FileSourceInfo | source |
QJsonObject | originalInfoJson |
QMimeType | mimeType |
qint64 | payloadSize = 0 |
QString | originalName |
An auxiliary class for an info type that carries a thumbnail.
This class saves/loads a thumbnail to/from info
subobject of the JSON representation of event content; namely, info/thumbnail_url
(or, in case of an encrypted thumbnail, info/thumbnail_file
) and info/thumbnail_info
fields are used.
Definition at line 147 of file eventcontent.h.
|
explicit |
void Quotient::EventContent::Thumbnail::dumpTo | ( | QJsonObject & | infoJson | ) | const |
Add thumbnail information to the passed info
JSON object.
|
default |
|
explicit |
Quotient::EventContent::ImageInfo::ImageInfo | ( | FileSourceInfo | sourceInfo, |
const QJsonObject & | infoJson, | ||
const QString & | originalFilename = {} |
||
) |
|
explicit |