102 void bumpDataRevision();
107 int dataRevision_ = 0;
Read-side workspace boundary that exposes immutable snapshots.
Write-side workspace boundary that accepts typed command models.
Immutable workspace read-model snapshot exposed through workspace ports.
Write-side workspace boundary for persistence, CRUD, drafts, and logs.
Maps UI intent to core workspace writer commands.
Projects workspace store data into QML-facing read models.
WorkspaceStore(QObject *parent=nullptr)
Creates an empty workspace store.
void setWorkspacePorts(core::ports::workspace::IWorkspaceWriter *writer, core::ports::workspace::IWorkspaceReader *reader)
Binds core workspace ports used by workspace roles.
void applyDeletionImpact(const core::ports::workspace::DeletionImpact &impact)
Applies deletion side effects to the stored snapshot.
void dataRevisionChanged()
friend class WorkspaceSelectors
int dataRevision() const noexcept
Returns the current data revision.
const core::ports::workspace::WorkspaceSnapshot & snapshot() const noexcept
Returns the current snapshot.
friend class WorkspaceCommands
QString currentPath() const
Returns the current workspace path.
void loadFromState(const core::ports::workspace::WorkspaceSnapshot &snapshot)
Loads a fresh workspace snapshot.