openMSX
TclCallbackMessages.hh
Go to the documentation of this file.
1 #ifndef TCLCALLBACKMESSAGES_HH
2 #define TCLCALLBACKMESSAGES_HH
3 
4 #include "CliListener.hh"
5 #include "TclCallback.hh"
6 
7 namespace openmsx {
8 
9 class GlobalCliComm;
10 class CommandController;
11 
12 class TclCallbackMessages final : public CliListener
13 {
14 public:
16  ~TclCallbackMessages() override;
17 
18  void log(CliComm::LogLevel level, std::string_view message) override;
19 
20  void update(CliComm::UpdateType type, std::string_view machine,
21  std::string_view name, std::string_view value) override;
22 
23 private:
24  GlobalCliComm& cliComm;
25  TclCallback messageCallback;
26 };
27 
28 } // namespace openmsx
29 
30 #endif
TclCallbackMessages(GlobalCliComm &cliComm, CommandController &controller)
void update(CliComm::UpdateType type, std::string_view machine, std::string_view name, std::string_view value) override
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
void log(CliComm::LogLevel level, std::string_view message) override