diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-28 02:01:37 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-28 02:01:37 +0200 |
commit | b21942a3e3db3e425155c58483a99bc2789de241 (patch) | |
tree | 860ffe40a5028b78df79de37a9b866a772885b1f /include/TimelineItem.h | |
parent | Remove another /messages call (#139) (diff) | |
download | nheko-b21942a3e3db3e425155c58483a99bc2789de241.tar.xz |
Add read support for m.file messages (#24)
Diffstat (limited to 'include/TimelineItem.h')
-rw-r--r-- | include/TimelineItem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/TimelineItem.h b/include/TimelineItem.h index cd522308..b94acbdb 100644 --- a/include/TimelineItem.h +++ b/include/TimelineItem.h @@ -24,6 +24,7 @@ #include <QStyleOption> #include "Emote.h" +#include "File.h" #include "Image.h" #include "MessageEvent.h" #include "Notice.h" @@ -31,6 +32,7 @@ #include "Text.h" class ImageItem; +class FileItem; class Avatar; namespace events = matrix::events; @@ -64,6 +66,10 @@ public: const events::MessageEvent<msgs::Image> &e, bool with_sender, QWidget *parent); + TimelineItem(FileItem *file, + const events::MessageEvent<msgs::File> &e, + bool with_sender, + QWidget *parent); void setUserAvatar(const QImage &pixmap); DescInfo descriptionMessage() const { return descriptionMsg_; } |