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-13 19:42:37 +0900 |
commit | 32d2673ff6268ad00c2b80912e7675673480096c (patch) | |
tree | 685ab7a115f2bfc4be0c293c3965e8bd9ced614e /converters.h | |
parent | 8f4a940d70cdcfc34a2ffe2d9a9561c0d821c56e (diff) | |
download | libquotient-32d2673ff6268ad00c2b80912e7675673480096c.tar.gz libquotient-32d2673ff6268ad00c2b80912e7675673480096c.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 'converters.h')
0 files changed, 0 insertions, 0 deletions