Changeset View
Changeset View
Standalone View
Standalone View
src/matrix-room.hpp
| Show All 12 Lines | |||||
| #include <QTimer> | #include <QTimer> | ||||
| #include <lager/extra/qt.hpp> | #include <lager/extra/qt.hpp> | ||||
| #include <client/room/room.hpp> | #include <client/room/room.hpp> | ||||
| Q_MOC_INCLUDE("matrix-room-timeline.hpp") | Q_MOC_INCLUDE("matrix-room-timeline.hpp") | ||||
| Q_MOC_INCLUDE("matrix-room-pinned-events-timeline.hpp") | Q_MOC_INCLUDE("matrix-room-pinned-events-timeline.hpp") | ||||
| Q_MOC_INCLUDE("matrix-sticker-pack-list.hpp") | Q_MOC_INCLUDE("matrix-sticker-pack-list.hpp") | ||||
| Q_MOC_INCLUDE("matrix-room-state.hpp") | |||||
| class MatrixRoomTimeline; | class MatrixRoomTimeline; | ||||
| class MatrixRoomPinnedEventsTimeline; | class MatrixRoomPinnedEventsTimeline; | ||||
| class MatrixRoomMember; | class MatrixRoomMember; | ||||
| class MatrixPromise; | class MatrixPromise; | ||||
| class MatrixRoomMemberListModel; | class MatrixRoomMemberListModel; | ||||
| class MatrixEvent; | class MatrixEvent; | ||||
| class MatrixStickerPackList; | class MatrixStickerPackList; | ||||
| class MatrixRoomState; | |||||
| nlohmann::json makeTextMessageJson(const QString &text, const QString &relType, const QString &relatedTo, Kazv::Event replyToEvent); | nlohmann::json makeTextMessageJson(const QString &text, const QString &relType, const QString &relatedTo, Kazv::Event replyToEvent); | ||||
| class MatrixRoom : public QObject | class MatrixRoom : public QObject | ||||
| { | { | ||||
| Q_OBJECT | Q_OBJECT | ||||
| QML_ELEMENT | QML_ELEMENT | ||||
| QML_UNCREATABLE("") | QML_UNCREATABLE("") | ||||
| Show All 30 Lines | public: | ||||
| LAGER_QT_READER(QStringList, tagIds); | LAGER_QT_READER(QStringList, tagIds); | ||||
| LAGER_QT_READER(Membership, membership); | LAGER_QT_READER(Membership, membership); | ||||
| LAGER_QT_READER(int, unreadNotificationCount); | LAGER_QT_READER(int, unreadNotificationCount); | ||||
| LAGER_QT_READER(QString, localReadMarker); | LAGER_QT_READER(QString, localReadMarker); | ||||
| Q_INVOKABLE MatrixRoomMember *memberAt(int index) const; | Q_INVOKABLE MatrixRoomMember *memberAt(int index) const; | ||||
| Q_INVOKABLE MatrixRoomMember *member(QString userId) const; | Q_INVOKABLE MatrixRoomMember *member(QString userId) const; | ||||
| Q_INVOKABLE MatrixRoomState *allState() const; | |||||
| Q_INVOKABLE MatrixEvent *state(const QString &type, const QString &stateKey) const; | Q_INVOKABLE MatrixEvent *state(const QString &type, const QString &stateKey) const; | ||||
| Q_INVOKABLE MatrixRoomTimeline *timeline() const; | Q_INVOKABLE MatrixRoomTimeline *timeline() const; | ||||
| Q_INVOKABLE MatrixRoomPinnedEventsTimeline *pinnedEventsTimeline() const; | Q_INVOKABLE MatrixRoomPinnedEventsTimeline *pinnedEventsTimeline() const; | ||||
| Q_INVOKABLE MatrixPromise *pinEvents(const QStringList &eventIds) const; | Q_INVOKABLE MatrixPromise *pinEvents(const QStringList &eventIds) const; | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||