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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user