#pragma once

#include <QObject>
#include <QString>

// ---------------------------------------------------------------------------
// ProjectManager – Tracks the currently open project directory and emits
// signals when the project changes so other components can react.
// ---------------------------------------------------------------------------
class ProjectManager : public QObject
{
    Q_OBJECT

public:
    explicit ProjectManager(QObject *parent = nullptr);

    QString currentProjectPath() const;
    void    openProject(const QString &path);
    void    closeProject();

signals:
    void projectOpened(const QString &path);
    void projectClosed();

private:
    QString m_projectPath;
};
