mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-18 17:46:22 +00:00
38 lines
902 B
C++
38 lines
902 B
C++
#pragma once
|
|
|
|
#include "linux_sim_app_shell.h"
|
|
#include "linux_sim_runtime_entry_adoption_probe.h"
|
|
#include "ui_ascii_runtime/ascii_runtime_entry_adoption.h"
|
|
|
|
#include <cstddef>
|
|
|
|
namespace trailmate::apps::linux_sim_shell
|
|
{
|
|
|
|
enum class LinuxSimRuntimeSource
|
|
{
|
|
Unavailable,
|
|
ScreenGraphAdoption,
|
|
};
|
|
|
|
class LinuxSimRuntimeEntry
|
|
{
|
|
public:
|
|
bool start(const LinuxSimAppShell& shell);
|
|
|
|
bool ready() const;
|
|
bool usingPrimaryScreenGraph() const noexcept;
|
|
LinuxSimRuntimeSource runtimeSource() const noexcept;
|
|
std::size_t menuCount() const;
|
|
std::size_t screenCount() const;
|
|
|
|
const trailmate::linux_sim::AsciiRuntimeEntryAdoption& adoption() const;
|
|
|
|
private:
|
|
LinuxSimRuntimeEntryAdoptionProbe adoption_probe_{};
|
|
LinuxSimRuntimeSource runtime_source_ = LinuxSimRuntimeSource::Unavailable;
|
|
bool ready_ = false;
|
|
};
|
|
|
|
} // namespace trailmate::apps::linux_sim_shell
|