diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-13 19:42:37 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-14 00:35:29 +0900 |
commit | b9f4b655273481e64d7d7ead6a30dbf85a901063 (patch) | |
tree | 63e150224c551fbea6dee6f9156d9f5c8f6cac94 /room.h | |
parent | eec3865e536a6c4f95f917eefc2e94c8d0c158b1 (diff) | |
download | libquotient-b9f4b655273481e64d7d7ead6a30dbf85a901063.tar.gz libquotient-b9f4b655273481e64d7d7ead6a30dbf85a901063.zip |
Refactor EventContent; allow to easily check files out of message events
The whole inheritance/templating structure has been considerably simplified by using a trick with mixin classes; thanks to that, *Info classes are no more templated, they are just mixed together by the almighty UrlBasedContent<> template (but the same can easily be done outside of it, as LocationContent implementation shows). RoomMessageEvent has gained hasFileContent(); it's also possible to easily get a FileInfo core object just by calling msgEvent->content()->fileInfo().
Diffstat (limited to 'room.h')
0 files changed, 0 insertions, 0 deletions