libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
roomavatarevent.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2017 Kitsune Ral <kitsune-ral@users.sf.net>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include "eventcontent.h"
7#include "stateevent.h"
8
9namespace Quotient {
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).
17public:
18 QUO_EVENT(RoomAvatarEvent, "m.room.avatar")
20
21 QUrl url() const { return content().url(); }
22};
23} // namespace Quotient
#define QUO_EVENT(CppType_, MatrixType_)
Supply event metatype information in (specific) event types.
Definition event.h:436
#define QUOTIENT_API