SetAiExclusionCommand.h header

#include <ew/core/SetAiExclusionCommand.h>

Namespace ew::core

SetAiExclusionCommand class

class ew::core::SetAiExclusionCommand

Command that sets whether a content object is excluded from AI features (its ContentObject::aiExcluded flag) – as toggled from the object's "Exclude from AI" menu action. When excluded, the object's content is withheld from every AI feature (the agent's world snapshot, the semantic/RAG index, and canon-consistency checks), giving the writer per-object privacy control. Undo restores the previous flag and redo re-applies.

Members

ew::core::SetAiExclusionCommand::SetAiExclusionCommand(ContentObject &object, bool excluded)

Creates a command that sets object's AI-exclusion flag to excluded when applied.

ew::core::SetAiExclusionCommand::~SetAiExclusionCommand() override

Destroys the command.

void ew::core::SetAiExclusionCommand::apply() override

Records the object's current AI-exclusion flag and applies the new one.

void ew::core::SetAiExclusionCommand::undo() override

Restores the previous AI-exclusion flag.

QString ew::core::SetAiExclusionCommand::description() const override

Returns a short description for the undo/redo UI.