mirror of
https://github.com/XITRIX/Moonlight-Switch.git
synced 2026-05-30 11:46:51 +00:00
31 lines
626 B
C++
31 lines
626 B
C++
//
|
|
// host_tab.hpp
|
|
// Moonlight
|
|
//
|
|
// Created by XITRIX on 26.05.2021.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <Settings.hpp>
|
|
#include <borealis.hpp>
|
|
#include <cstdint>
|
|
|
|
enum HostState { FETCHING, AVAILABLE, UNAVAILABLE };
|
|
|
|
class HostTab : public brls::Box {
|
|
public:
|
|
HostTab(const Host& host);
|
|
void reloadHost();
|
|
|
|
BRLS_BIND(brls::DetailCell, connect, "connect");
|
|
BRLS_BIND(brls::DetailCell, remove, "remove");
|
|
BRLS_BIND(brls::Header, header, "header");
|
|
|
|
private:
|
|
Host host;
|
|
HostState state = HostState::FETCHING;
|
|
uint64_t wakeRequestGeneration = 0;
|
|
uint64_t canceledWakeRequestGeneration = 0;
|
|
};
|