From ac24e06ae24c077db48ebe149018f35b57c83734 Mon Sep 17 00:00:00 2001 From: James Graham Date: Wed, 3 May 2023 19:58:27 +0000 Subject: [PATCH] Document spacehierarchycache --- src/spacehierarchycache.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/spacehierarchycache.h b/src/spacehierarchycache.h index 85f57a5b2..5f45bc0f9 100644 --- a/src/spacehierarchycache.h +++ b/src/spacehierarchycache.h @@ -13,6 +13,13 @@ namespace Quotient class Room; } +/** + * @class SpaceHierarchyCache + * + * A class to store the child spaces for each space. + * + * Spaces are cached on startup or when the user enters a new space. + */ class SpaceHierarchyCache : public QObject { Q_OBJECT @@ -24,6 +31,9 @@ public: return _instance; } + /** + * @brief Return the list of child rooms for the given space ID. + */ [[nodiscard]] QVector &getRoomListForSpace(const QString &spaceId, bool updateCache); Q_SIGNALS: