ESPHome  2024.11.0
text_call.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "esphome/core/helpers.h"
4 #include "text_traits.h"
5 
6 namespace esphome {
7 namespace text {
8 
9 class Text;
10 
11 class TextCall {
12  public:
13  explicit TextCall(Text *parent) : parent_(parent) {}
14  void perform();
15 
16  TextCall &set_value(const std::string &value);
17 
18  protected:
19  Text *const parent_;
21  void validate_();
22 };
23 
24 } // namespace text
25 } // namespace esphome
TextCall(Text *parent)
Definition: text_call.h:13
TextCall & set_value(const std::string &value)
Definition: text_call.cpp:10
Text *const parent_
Definition: text_call.h:19
Base-class for all text inputs.
Definition: text.h:24
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
optional< std::string > value_
Definition: text_call.h:20