|
| Thumbnail (const QJsonObject &infoJson) |
|
void | dumpTo (QJsonObject &infoJson) const |
| Add thumbnail information to the passed info JSON object. More...
|
|
| ImageInfo ()=default |
|
| ImageInfo (const QFileInfo &fi, QSize imageSize={}) |
|
| ImageInfo (FileSourceInfo sourceInfo, qint64 fileSize=-1, const QMimeType &type={}, QSize imageSize={}, const QString &originalFilename={}) |
|
| ImageInfo (FileSourceInfo sourceInfo, const QJsonObject &infoJson, const QString &originalFilename={}) |
|
| ImageInfo ()=default |
|
| ImageInfo (const QFileInfo &fi, QSize imageSize={}) |
|
| ImageInfo (FileSourceInfo sourceInfo, qint64 fileSize=-1, const QMimeType &type={}, QSize imageSize={}, const QString &originalFilename={}) |
|
| ImageInfo (FileSourceInfo sourceInfo, const QJsonObject &infoJson, const QString &originalFilename={}) |
|
| FileInfo ()=default |
|
| FileInfo (const QFileInfo &fi) |
| Construct from a QFileInfo object. More...
|
|
| FileInfo (FileSourceInfo sourceInfo, qint64 payloadSize=-1, const QMimeType &mimeType={}, QString originalFilename={}) |
|
| FileInfo (FileSourceInfo sourceInfo, const QJsonObject &infoJson, QString originalFilename={}) |
| Construct from a JSON info payload. More...
|
|
bool | isValid () const |
|
QUrl | url () const |
|
QString | mediaId () const |
| Extract media id from the URL. More...
|
|
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.