#pragma once #include #include #include #include #include #include "shell.hpp" #include "watcher.hpp" class RootWrapper: public QObject { Q_OBJECT; public: explicit RootWrapper(QString rootPath); ~RootWrapper() override; Q_DISABLE_COPY_MOVE(RootWrapper); void reloadGraph(bool hard); private slots: void onConfigChanged(); void onWatchedFilesChanged(); private: QString rootPath; QQmlEngine engine; ShellRoot* root = nullptr; FiletreeWatcher* configWatcher = nullptr; };