bolar_2 backup
This commit is contained in:
37
main/configuration/remote_behavior_config.h
Normal file
37
main/configuration/remote_behavior_config.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include "ports/remote_behavior_config.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
namespace borla {
|
||||
|
||||
class NvsRemoteBehaviorConfig final : public IRemoteBehaviorConfig {
|
||||
public:
|
||||
bool Load();
|
||||
|
||||
ButtonAction ResolveButtonAction(
|
||||
uint8_t click_count) const override;
|
||||
LocalPrompt ServerUnreachablePrompt() const override;
|
||||
LocalPrompt NoNetworkPrompt() const override;
|
||||
bool UpdateButtonActions(
|
||||
ButtonAction triple_click,
|
||||
ButtonAction quadruple_click) override;
|
||||
bool UpdateConnectionPrompts(
|
||||
bool has_server_unreachable,
|
||||
LocalPrompt server_unreachable,
|
||||
bool has_no_network,
|
||||
LocalPrompt no_network) override;
|
||||
|
||||
private:
|
||||
std::atomic<ButtonAction> triple_click_{
|
||||
ButtonAction::kFriendMode};
|
||||
std::atomic<ButtonAction> quadruple_click_{
|
||||
ButtonAction::kNetworkSwitch};
|
||||
std::atomic<LocalPrompt> server_unreachable_{
|
||||
LocalPrompt::kServerError};
|
||||
std::atomic<LocalPrompt> no_network_{
|
||||
LocalPrompt::kNoNetwork};
|
||||
};
|
||||
|
||||
} // namespace borla
|
||||
Reference in New Issue
Block a user