Changeset View
Changeset View
Standalone View
Standalone View
src/matrix-room.cpp
| Show All 15 Lines | |||||
| #include <QMimeDatabase> | #include <QMimeDatabase> | ||||
| #include "kazv-log.hpp" | #include "kazv-log.hpp" | ||||
| #include "matrix-room.hpp" | #include "matrix-room.hpp" | ||||
| #include "matrix-room-timeline.hpp" | #include "matrix-room-timeline.hpp" | ||||
| #include "matrix-room-pinned-events-timeline.hpp" | #include "matrix-room-pinned-events-timeline.hpp" | ||||
| #include "matrix-room-member.hpp" | #include "matrix-room-member.hpp" | ||||
| #include "matrix-room-member-list-model.hpp" | #include "matrix-room-member-list-model.hpp" | ||||
| #include "matrix-room-state.hpp" | |||||
| #include "matrix-promise.hpp" | #include "matrix-promise.hpp" | ||||
| #include "matrix-event.hpp" | #include "matrix-event.hpp" | ||||
| #include "matrix-sticker-pack-list.hpp" | #include "matrix-sticker-pack-list.hpp" | ||||
| #include "kazv-markdown.hpp" | #include "kazv-markdown.hpp" | ||||
| #include "qt-json.hpp" | #include "qt-json.hpp" | ||||
| #include "qfunctionutils.hpp" | #include "qfunctionutils.hpp" | ||||
| #include "helper.hpp" | #include "helper.hpp" | ||||
| ▲ Show 20 Lines • Show All 376 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| return new MatrixRoomMember(m_room.memberEventByCursor( | return new MatrixRoomMember(m_room.memberEventByCursor( | ||||
| m_memberNames[index][lager::lenses::or_default])); | m_memberNames[index][lager::lenses::or_default])); | ||||
| } | } | ||||
| MatrixRoomMember *MatrixRoom::member(QString userId) const | MatrixRoomMember *MatrixRoom::member(QString userId) const | ||||
| { | { | ||||
| return new MatrixRoomMember(m_room.memberEventFor(userId.toStdString())); | return new MatrixRoomMember(m_room.memberEventFor(userId.toStdString())); | ||||
| } | |||||
| MatrixRoomState *MatrixRoom::allState() const | |||||
| { | |||||
| return new MatrixRoomState(m_room.stateEvents()); | |||||
| } | } | ||||
| MatrixEvent *MatrixRoom::state(const QString &type, const QString &stateKey) const | MatrixEvent *MatrixRoom::state(const QString &type, const QString &stateKey) const | ||||
| { | { | ||||
| return new MatrixEvent(m_room.state({type.toStdString(), stateKey.toStdString()})); | return new MatrixEvent(m_room.state({type.toStdString(), stateKey.toStdString()})); | ||||
| } | } | ||||
| MatrixEvent *MatrixRoom::messageById(QString eventId) const | MatrixEvent *MatrixRoom::messageById(QString eventId) const | ||||
| ▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines | |||||