Ensure that only one RoomManager exists

This commit is contained in:
Tobias Fella
2024-01-06 17:46:28 +01:00
parent 5c78b23cc2
commit ad083f64b1

View File

@@ -96,7 +96,6 @@ class RoomManager : public QObject, public UriResolverBase
Q_PROPERTY(ChatDocumentHandler *chatDocumentHandler READ chatDocumentHandler WRITE setChatDocumentHandler NOTIFY chatDocumentHandlerChanged)
public:
explicit RoomManager(QObject *parent = nullptr);
virtual ~RoomManager();
static RoomManager &instance();
static RoomManager *create(QQmlEngine *engine, QJSEngine *)
@@ -418,4 +417,7 @@ private:
* @sa resolveResource(), Quotient::UriResolverBase::visitUser(), Quotient::UriResolverBase::visitResource()
*/
Q_INVOKABLE bool visitNonMatrix(const QUrl &url) override;
private:
explicit RoomManager(QObject *parent = nullptr);
};