25 std::shared_ptr<core::ports::importing::IImportRunner> runner);
103 const std::string& sourceFile,
106 const std::vector<core::ports::importing::draft::TransactionDraft>&
108 const std::string& draftId)
const;
163 std::shared_ptr<core::ports::importing::IImportRunner> runner_;
Import runner port consumed by UI workflows.
void unsubscribe(const core::ports::importing::StatementImportHandle &handle)
Removes an import event subscription.
core::ports::importing::draft::StatementDraft buildStatementDraft(const std::string &sourceFile, const core::ports::workspace::StatementSnapshot &statement, const core::ports::workspace::WorkspaceSnapshot &state, const std::vector< core::ports::importing::draft::TransactionDraft > &transactions, const std::string &draftId) const
Builds a statement draft from an imported statement result.
ImportAdapter(std::shared_ptr< core::ports::importing::IImportRunner > runner)
Creates an adapter backed by the core import runner port.
core::ports::importing::StatementImportHandle startStatementImport(const core::ports::importing::ImportRequest &request, core::ports::importing::StatementImportEventCallback callback)
Starts an asynchronous statement import through the runner.
core::ports::importing::draft::StatementDraft restoreStatementDraft(const core::ports::workspace::StatementDraftSnapshot &draft) const
Restores a statement draft from workspace draft state.
core::ports::workspace::WorkspaceSnapshot mergeWorkspaceState(core::ports::workspace::WorkspaceSnapshot primary, const core::ports::workspace::WorkspaceSnapshot &secondary) const
Merges stored draft catalog state with live workspace state.
core::ports::importing::ImportResult importResult(const core::ports::importing::StatementImportHandle &handle)
Reads the final import result for a handle.
bool updateTransactionDraft(core::ports::importing::draft::TransactionDraft &draft, const core::ports::workspace::WorkspaceSnapshot &state, const core::ports::importing::draft::TransactionDraftEdit &edit) const
Applies a transaction draft edit through the runner.
core::ports::importing::draft::DraftDerivedState buildDraftDerivedState(const core::ports::workspace::WorkspaceSnapshot &state, const core::ports::importing::draft::DraftLinkSelection &selection) const
Builds derived draft suggestion state through the runner.
void cancel(const core::ports::importing::StatementImportHandle &handle)
Requests cancellation of a running import.
void pause(const core::ports::importing::StatementImportHandle &handle)
Requests pausing of a running import.
void resume(const core::ports::importing::StatementImportHandle &handle)
Requests resuming of a paused import.
core::ports::importing::draft::StatementDraftEditResult updateStatementDraft(core::ports::importing::draft::StatementDraft &draft, const core::ports::importing::draft::StatementDraftEdit &edit) const
Applies a statement draft edit through the runner.
TransactionDraftView transactionDraftView(const core::ports::importing::draft::TransactionDraft &draft, const core::ports::workspace::WorkspaceSnapshot &state) const
Builds the QML transaction draft view through core-derived state.
core::ports::workspace::StatementDraftSnapshot buildStatementDraftSnapshot(const core::ports::importing::draft::StatementDraft &draft, const core::ports::workspace::WorkspaceSnapshot &state) const
Builds workspace draft state from the active statement draft.
std::function< void(const StatementImportEvent &)> StatementImportEventCallback
Qt-friendly projection of the currently edited import transaction.