quickshell/src/core/rootwrapper.hpp
outfoxxed d582bb7b57
core: add per-config shell id
Will be useful for future functionality such as IPC and caching.
2024-08-02 02:09:55 -07:00

30 lines
572 B
C++

#pragma once
#include <qobject.h>
#include <qqmlengine.h>
#include <qtclasshelpermacros.h>
#include <qtmetamacros.h>
#include <qurl.h>
#include "generation.hpp"
class RootWrapper: public QObject {
Q_OBJECT;
public:
explicit RootWrapper(QString rootPath, QString shellId);
~RootWrapper() override;
Q_DISABLE_COPY_MOVE(RootWrapper);
void reloadGraph(bool hard);
private slots:
void onWatchFilesChanged();
void onWatchedFilesChanged();
private:
QString rootPath;
QString shellId;
EngineGeneration* generation = nullptr;
QString originalWorkingDirectory;
};