aboutsummaryrefslogtreecommitdiff
path: root/events/eventcontent.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 21:24:49 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 21:24:49 +0900
commite80bfd2fc710d4780a2c22bde9d605a41bd4aaa4 (patch)
tree03eecc0f4999f90952da3d7cf8637c2fa2ac84f1 /events/eventcontent.h
parente1aedb9f3dcf7dcdc68e5eefab206258013c5114 (diff)
parentf6b55a3c8fc60dd263954df3359027eff2ef1e18 (diff)
downloadlibquotient-e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4.tar.gz
libquotient-e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4.zip
Merge branch 'kitsune-expose-download-urls' into kitsune-gtad
Diffstat (limited to 'events/eventcontent.h')
-rw-r--r--events/eventcontent.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/events/eventcontent.h b/events/eventcontent.h
index 4afbaff3..9d44aec0 100644
--- a/events/eventcontent.h
+++ b/events/eventcontent.h
@@ -200,6 +200,7 @@ namespace QMatrixClient
explicit TypedBase(const QJsonObject& o = {}) : Base(o) { }
virtual QMimeType type() const = 0;
virtual const FileInfo* fileInfo() const { return nullptr; }
+ virtual const Thumbnail* thumbnailInfo() const { return nullptr; }
};
/**
@@ -256,6 +257,9 @@ namespace QMatrixClient
"thumbnailMediaId", thumbnail.mediaId());
}
+ const Thumbnail* thumbnailInfo() const override
+ { return &thumbnail; }
+
public:
Thumbnail thumbnail;