ESPHome 2025.5.0
Loading...
Searching...
No Matches
select_call.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace esphome {
6namespace select {
7
8class Select;
9
19
21 public:
22 explicit SelectCall(Select *parent) : parent_(parent) {}
23 void perform();
24
25 SelectCall &set_option(const std::string &option);
26 SelectCall &set_index(size_t index);
27
28 SelectCall &select_next(bool cycle);
29 SelectCall &select_previous(bool cycle);
32
34 SelectCall &with_cycle(bool cycle);
35 SelectCall &with_option(const std::string &option);
36 SelectCall &with_index(size_t index);
37
38 protected:
43 bool cycle_;
44};
45
46} // namespace select
47} // namespace esphome
SelectCall & select_next(bool cycle)
SelectCall & with_index(size_t index)
optional< size_t > index_
Definition select_call.h:41
SelectCall(Select *parent)
Definition select_call.h:22
SelectCall & with_cycle(bool cycle)
SelectCall & select_previous(bool cycle)
SelectOperation operation_
Definition select_call.h:42
SelectCall & with_operation(SelectOperation operation)
SelectCall & set_index(size_t index)
SelectCall & set_option(const std::string &option)
SelectCall & with_option(const std::string &option)
optional< std::string > option_
Definition select_call.h:40
Base-class for all selects.
Definition select.h:31
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7