aboutsummaryrefslogtreecommitdiff
path: root/lib/events/eventcontent.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-05 19:59:48 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-05 21:01:37 +0900
commite3578b3cc6b978db1c04a1f684e1a03676c33f3b (patch)
tree69191451c891f408a98159081e97a518a11d023c /lib/events/eventcontent.h
parentfb46c2d2a6e53557452837c2690f32a56387fcac (diff)
downloadlibquotient-e3578b3cc6b978db1c04a1f684e1a03676c33f3b.tar.gz
libquotient-e3578b3cc6b978db1c04a1f684e1a03676c33f3b.zip
EventContent::ImageInfo: support originalFilename in POD constructor
It's not mandated by the spec for anything except m.file but hey it's convenient.
Diffstat (limited to 'lib/events/eventcontent.h')
-rw-r--r--lib/events/eventcontent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h
index 2e61276b..0588c0e2 100644
--- a/lib/events/eventcontent.h
+++ b/lib/events/eventcontent.h
@@ -129,7 +129,8 @@ namespace QMatrixClient
public:
explicit ImageInfo(const QUrl& u, qint64 fileSize = -1,
QMimeType mimeType = {},
- const QSize& imageSize = {});
+ const QSize& imageSize = {},
+ const QString& originalFilename = {});
ImageInfo(const QUrl& u, const QJsonObject& infoJson,
const QString& originalFilename = {});