Update space heirarchy cache

Add functions to update the space heirarchy cache when a new space is added or removed.
This commit is contained in:
James Graham
2023-03-17 14:23:39 +00:00
parent 4e16b91f54
commit ac5212ebb2
2 changed files with 32 additions and 1 deletions

View File

@@ -8,6 +8,11 @@
#include <QString>
#include <QVector>
namespace Quotient
{
class Room;
}
class SpaceHierarchyCache : public QObject
{
Q_OBJECT
@@ -24,6 +29,10 @@ public:
Q_SIGNALS:
void spaceHierarchyChanged();
private Q_SLOTS:
void addSpaceToHierarchy(Quotient::Room *room);
void removeSpaceFromHierarchy(Quotient::Room *room);
private:
explicit SpaceHierarchyCache(QObject *parent = nullptr);