8#include "../csapi/definitions/tag.h"
11constexpr inline auto FavouriteTag =
"m.favourite"_L1;
12constexpr inline auto LowPriorityTag =
"m.lowpriority"_L1;
13constexpr inline auto ServerNoticeTag =
"m.server_notice"_L1;
15inline std::partial_ordering operator<=>(
16 const Tag& lhs,
const Tag& rhs)
20 return (lhs.order && !rhs.order) ? std::partial_ordering::less
21 : (!lhs.order && rhs.order) ? std::partial_ordering::greater
22 : *lhs.order <=> *rhs.order;
25inline bool operator==(
const Tag& lhs,
const Tag& rhs)
27 return std::is_eq(lhs <=> rhs);
30using TagsMap = QHash<QString, Tag>;
36 QSet<QString>, ignoredUsers,
"ignored_users")
#define DEFINE_SIMPLE_EVENT(Name_, Base_, TypeId_, ValueType_, GetterName_, JsonKey_)
Define a new event class with a single key-value pair in the content.