libQuotient
A Qt library for building matrix clients
|
A content info class for image/video content types and thumbnails. More...
#include <eventcontent.h>
Public Member Functions | |
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={}) | |
Public Member Functions inherited from Quotient::EventContent::FileInfo | |
FileInfo ()=default | |
FileInfo (const QFileInfo &fi) | |
Construct from a QFileInfo object. | |
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. | |
bool | isValid () const |
QUrl | url () const |
QString | mediaId () const |
Extract media id from the URL. | |
Public Attributes | |
QSize | imageSize |
Public Attributes inherited from Quotient::EventContent::FileInfo | |
FileSourceInfo | source |
QJsonObject | originalInfoJson |
QMimeType | mimeType |
qint64 | payloadSize = 0 |
QString | originalName |
A content info class for image/video content types and thumbnails.
Definition at line 127 of file eventcontent.h.
|
default |
|
explicit |
|
explicit |
Quotient::EventContent::ImageInfo::ImageInfo | ( | FileSourceInfo | sourceInfo, |
const QJsonObject & | infoJson, | ||
const QString & | originalFilename = {} |
||
) |
QSize Quotient::EventContent::ImageInfo::imageSize |
Definition at line 136 of file eventcontent.h.