mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 18:00:48 +03:00
63 lines
1.6 KiB
C
63 lines
1.6 KiB
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include <QDateTime>
|
||
|
#include <QString>
|
||
|
|
||
|
#include <mtx/events/collections.hpp>
|
||
|
|
||
|
namespace mtx::accessors {
|
||
|
std::string
|
||
|
event_id(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
std::string
|
||
|
room_id(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
std::string
|
||
|
sender(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
QDateTime
|
||
|
origin_server_ts(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
std::string
|
||
|
filename(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
mtx::events::MessageType
|
||
|
msg_type(const mtx::events::collections::TimelineEvents &event);
|
||
|
std::string
|
||
|
room_name(const mtx::events::collections::TimelineEvents &event);
|
||
|
std::string
|
||
|
room_topic(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
std::string
|
||
|
body(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
std::string
|
||
|
formatted_body(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
QString
|
||
|
formattedBodyWithFallback(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
std::optional<mtx::crypto::EncryptedFile>
|
||
|
file(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
std::string
|
||
|
url(const mtx::events::collections::TimelineEvents &event);
|
||
|
std::string
|
||
|
thumbnail_url(const mtx::events::collections::TimelineEvents &event);
|
||
|
std::string
|
||
|
mimetype(const mtx::events::collections::TimelineEvents &event);
|
||
|
std::string
|
||
|
in_reply_to_event(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
int64_t
|
||
|
filesize(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
uint64_t
|
||
|
media_height(const mtx::events::collections::TimelineEvents &event);
|
||
|
|
||
|
uint64_t
|
||
|
media_width(const mtx::events::collections::TimelineEvents &event);
|
||
|
}
|