Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::LogNavigation Class Reference

Weak UI-affine checkpoint session owned by an existing scene. Removing a view leaves this session alive. Handles retain no source, view or runtime. Reusing a handle explicitly resumes its history; views otherwise navigate independently. More...

#include <log_navigation.hpp>

Public Member Functions

 LogNavigation ()=default
 Empty handle; queries return CLOSED.
std::expected< LogRestoreStatus, SourceError > status () const
std::expected< std::optional< LogReadingCheckpoint >, SourceError > checkpoint (ModelResource resource) const
std::expected< void, SourceError > reset (ModelResource resource) const

Friends

class ManagedScene
struct ui::detail::ExternalLogAccess

Detailed Description

Weak UI-affine checkpoint session owned by an existing scene. Removing a view leaves this session alive. Handles retain no source, view or runtime. Reusing a handle explicitly resumes its history; views otherwise navigate independently.

Member Function Documentation

◆ checkpoint()

std::expected< std::optional< LogReadingCheckpoint >, SourceError > portals::LogNavigation::checkpoint ( ModelResource resource) const
Parameters
resourceLogical resource whose checkpoint is requested.
Returns
Owning saved values, an empty optional, WRONG_THREAD, or CLOSED.

◆ reset()

std::expected< void, SourceError > portals::LogNavigation::reset ( ModelResource resource) const
Parameters
resourceLogical resource whose saved position is explicitly forgotten.
Returns
Success, WRONG_THREAD, or CLOSED; other resources are unchanged. This erases only the saved entry, without moving an active view or requesting redraw/work. Later ordinary preparation or navigation may capture its position again.

◆ status()

std::expected< LogRestoreStatus, SourceError > portals::LogNavigation::status ( ) const
Returns
Latest recoverable restore status, WRONG_THREAD, or CLOSED.

The documentation for this class was generated from the following file: