Owning UI-thread-affine current-record editing descriptor; no runtime is created before mount. Field/session operations, including retained inspection and reply admission, require the creating UI thread. Workers receive owning requests and deliver receipts through the existing UI delivery path.
More...
#include <ui_model_edit.hpp>
|
| template<class Value> |
| EditField< Row, Value > | field (Value Row::*member) const |
| | Typed field with a process-local member shorthand.
|
| template<class Value> |
| EditField< Row, Value > | field (std::string_view key, Value Row::*member, std::type_identity_t< std::shared_ptr< EditEndpoint< Value > > > endpoint={}) const |
| | Typed field with an explicit persistent schema key.
|
| EditorCommandResult | commit (std::source_location origin=std::source_location::current()) const |
| EditorCommandResult | cancel (std::source_location origin=std::source_location::current()) const |
| std::shared_ptr< const EditCommitResult > | lastResult () const |
| std::expected< bool, TreeError > | applyReply (const EditReceipt &receipt) const |
|
|
template<class, class> |
| class | EditField |
|
template<class> |
| class | RowContext |
|
template<class, class> |
| class | RowField |
|
template<class T> |
| EditSession< T > | edit (Navigation< T >, EditOptions) |
template<class
Row>
class portals::ui::EditSession< Row >
Owning UI-thread-affine current-record editing descriptor; no runtime is created before mount. Field/session operations, including retained inspection and reply admission, require the creating UI thread. Workers receive owning requests and deliver receipts through the existing UI delivery path.
◆ applyReply()
- Parameters
-
| receipt | Original owning backend reply. |
- Returns
- True for an admitted final reply, false when stale.
◆ cancel()
- Parameters
-
| origin | Calling location used by managed error reporting. |
- Returns
- Cancel only displayed/current drafts, adopting admitted accepted values. Already admitted backend requests remain in flight; cancellation does not undo backend work.
◆ commit()
- Parameters
-
| origin | Calling location used by managed error reporting. |
- Returns
- Checked command admission; pending remains visible in lastResult(), never claimed committed.
◆ field() [1/2]
Typed field with an explicit persistent schema key.
- Parameters
-
| key | Nonempty schema identity copied into owning storage. |
| member | Record member selected by this field. |
| endpoint | Optional source adapter; omitted for the built-in model field capability. |
- Returns
- Shared field descriptor, or an empty descriptor for an invalid or conflicting key.
◆ field() [2/2]
Typed field with a process-local member shorthand.
- Parameters
-
| member | Record member selected by this field; its pointer is not a persistent schema key. |
- Returns
- Shared field descriptor retaining the selected record's draft and history.
◆ lastResult()
- Returns
- Owning explicit per-field result; non-atomic partial acceptance remains visible.
The documentation for this class was generated from the following file: