9namespace key_collector {
36 void clear(
bool progress_update =
true);
59 void play(
const Ts &...
x)
override { this->
parent_->set_enabled(
true); }
63 void play(
const Ts &...
x)
override { this->
parent_->set_enabled(
false); }
Helper class to easily give an object a parent of type T.
LazyCallbackManager< void(const std::string &, uint8_t)> timeout_callbacks_
void set_start_keys(std::string start_keys)
void set_max_length(uint16_t max_length)
void set_end_key_required(bool end_key_required)
void set_back_keys(std::string back_keys)
void set_enabled(bool enabled)
void add_on_timeout_callback(std::function< void(const std::string &, uint8_t)> &&callback)
void add_on_result_callback(std::function< void(const std::string &, uint8_t, uint8_t)> &&callback)
void send_key(uint8_t key)
void set_timeout(int timeout)
void set_min_length(uint16_t min_length)
void set_clear_keys(std::string clear_keys)
void add_provider(key_provider::KeyProvider *provider)
void set_end_keys(std::string end_keys)
void add_on_progress_callback(std::function< void(const std::string &, uint8_t)> &&callback)
std::string allowed_keys_
void set_allowed_keys(std::string allowed_keys)
LazyCallbackManager< void(const std::string &, uint8_t)> progress_callbacks_
void dump_config() override
void clear(bool progress_update=true)
LazyCallbackManager< void(const std::string &, uint8_t, uint8_t)> result_callbacks_
interface for components that provide keypresses
Providing packet encoding functions for exchanging data with a remote host.