aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/room.h b/lib/room.h
index 55dde2ee..452ea306 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -508,6 +508,12 @@ public:
Q_INVOKABLE const Quotient::StateEventBase*
getCurrentState(const QString& evtType, const QString& stateKey = {}) const;
+ /// Get all state events in the room.
+ /*! This method returns all known state events that have occured in
+ * the room, as a mapping from the event type and state key to value.
+ */
+ Q_INVOKABLE const QHash<StateEventKey, const StateEventBase*> stateEvents() const;
+
/// Get a state event with the given event type and state key
/*! This is a typesafe overload that accepts a C++ event type instead of
* its Matrix name.