| 1 | // SPDX-FileCopyrightText: 2017 Kitsune Ral <[email protected]>cxx . . $ `<file>/Quotient/events/roomavatarevent.h`/ |
| 2 | // SPDX-License-Identifier: LGPL-2.1-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "eventcontent.h"cxx . . $ `<file>/Quotient/events/eventcontent.h`/ |
| 7 | #include "stateevent.h"cxx . . $ `<file>/Quotient/events/stateevent.h`/ |
| 8 | |
| 9 | namespace Quotientcxx . . $ Quotient/ { |
| 10 | class QUOTIENT_APIcxx . . $ `Quotient/quotient_export.h:9:13`! RoomAvatarEventcxx . . $ Quotient/RoomAvatarEvent# |
| 11 | : public KeylessStateEventBasecxx . . $ Quotient/KeylessStateEventBase#<RoomAvatarEventcxx . . $ Quotient/RoomAvatarEvent#, |
| 12 | EventContentcxx . . $ Quotient/EventContent/::ImageContentcxx . . $ Quotient/EventContent/ImageContent#> { |
| 13 | // It's a bit of an overkill to use a full-fledged ImageContent |
| 14 | // because in reality m.room.avatar usually only has a single URL, |
| 15 | // without a thumbnail. But The Spec says there be thumbnails, and |
| 16 | // we follow The Spec (and ImageContent is very convenient to reuse here). |
| 17 | public: |
| 18 | QUO_EVENTcxx . . $ Quotient/RoomAvatarEvent#MetaType.(RoomAvatarEvent, "m.room.avatar") |
| 19 | using KeylessStateEventBasecxx . . $ Quotient/KeylessStateEventBase#::KeylessStateEventBasecxx . . $ Quotient/KeylessStateEventBase#KeylessStateEventBase(a3c446b539637276).; |
| 20 | |
| 21 | QUrlcxx . . $ QUrl# urlcxx . . $ Quotient/RoomAvatarEvent#url(36d9834fe7321282).() const { return contentcxx . . $ Quotient/EventTemplate#content(bdbd05d619d62250).().urlcxx . . $ Quotient/EventContent/UrlBasedContent#url(36d9834fe7321282).(); } |
| 22 | }; |
| 23 | } // namespace Quotient |