Files
trail-mate/platform/linux/common/include/app/linux_phone_runtime.h
T
Trail Mate Dev 6e613e382e Add CM0 Linux support and share device services across platforms
Compose the CM0 fullscreen application and standard Debian package, align the
Cardputer Zero shell, and share protocol, configuration, audio and storage
services with embedded targets through existing platform seams.

Add the paginated on-device TMAP creator using Center's published producer,
private workspace recovery and direct keyboard shortcuts. Preserve unfinished
management work behind its existing opt-in capability.

Include native, ARM and shared-core regression fixtures, integration records,
packaging helpers and dependency/license updates. Keep local build trees,
device credentials, produced packages and validation logs outside version control.

Validation before integration: ESP stack hygiene, Reticulum scope guard, staged
whitespace checks and GitNexus scope audit. Prior device/build evidence and
remaining hardware/package boundaries are recorded in the acceptance documents.
2026-10-29 10:29:29 +08:00

33 lines
1.0 KiB
C++

#pragma once
#include "platform/linux/bluez_phone_gatt.h"
#include <memory>
namespace trailmate::linux_app
{
class LinuxAppServices;
class LinuxPhoneRuntime
{
public:
struct Status
{
bool ready = false;
bool connected = false;
std::string error;
};
explicit LinuxPhoneRuntime(LinuxAppServices& services, std::function<bool(const platform::linux_runtime::PhonePairingDisplay&)> presenter = {});
void setPairingPresenter(std::function<bool(const platform::linux_runtime::PhonePairingDisplay&)>);
~LinuxPhoneRuntime();
LinuxPhoneRuntime(const LinuxPhoneRuntime&) = delete;
LinuxPhoneRuntime& operator=(const LinuxPhoneRuntime&) = delete;
// Application thread only. Registration/discovery are asynchronous to the UI.
void configure(bool enabled, const platform::linux_runtime::BluezPhoneGattOptions& options);
void tick();
void stop();
Status status() const;
private:
struct Impl;
std::unique_ptr<Impl> impl_;
};
} // namespace trailmate::linux_app