|
Radix Relay
Hybrid mesh communications with Signal Protocol encryption
|
Text-based user interface processor with REPL. More...
#include <processor.hpp>
Public Member Functions | |
| processor (std::string node_id, std::string mode, const std::shared_ptr< Bridge > &bridge, const std::shared_ptr< async::async_queue< core::events::raw_command > > &command_queue, const std::shared_ptr< async::async_queue< core::events::ui_event_t > > &ui_event_queue) | |
| Constructs a TUI processor. | |
| ~processor () | |
| processor (const processor &)=delete | |
| auto | operator= (const processor &) -> processor &=delete |
| processor (processor &&)=delete | |
| auto | operator= (processor &&) -> processor &=delete |
| auto | run () -> void |
| Runs the interactive REPL loop. | |
| auto | stop () -> void |
| Stops the TUI processor and message polling thread. | |
| auto | get_mode () const -> const std::string & |
| Returns the current network mode. | |
| auto | update_chat_context (std::string contact_name) -> void |
| Updates the active chat context with a contact name. | |
| auto | clear_chat_context () -> void |
| Clears the active chat context, returning to default mode. | |
| auto | get_chat_context () const -> std::optional< std::string > |
| Returns the current chat context. | |
| auto | get_prompt () const -> const std::string & |
| Returns the current prompt string. | |
Text-based user interface processor with REPL.
| Bridge | Type satisfying the signal_bridge concept |
Provides an interactive command-line interface using Replxx for command input, history management, and display message output.
Definition at line 25 of file processor.hpp.
|
inline |
Constructs a TUI processor.
| node_id | Node identifier for display |
| mode | Network mode (internet/mesh/hybrid) |
| bridge | Signal Protocol bridge |
| command_queue | Queue for outgoing user commands |
| display_queue | Queue for incoming display messages |
Definition at line 36 of file processor.hpp.
|
inline |
Definition at line 45 of file processor.hpp.
References radix_relay::tui::processor< Bridge >::stop().
|
delete |
|
delete |
|
inline |
Clears the active chat context, returning to default mode.
Definition at line 146 of file processor.hpp.
|
inline |
Returns the current chat context.
Definition at line 157 of file processor.hpp.
|
inline |
Returns the current network mode.
Definition at line 130 of file processor.hpp.
|
inline |
Returns the current prompt string.
Definition at line 164 of file processor.hpp.
|
delete |
|
delete |
|
inline |
Runs the interactive REPL loop.
Starts message polling thread and processes user input until quit command.
Definition at line 57 of file processor.hpp.
References radix_relay::tui::processor< Bridge >::stop().
|
inline |
Stops the TUI processor and message polling thread.
Definition at line 118 of file processor.hpp.
Referenced by radix_relay::tui::processor< Bridge >::run(), and radix_relay::tui::processor< Bridge >::~processor().
|
inline |
Updates the active chat context with a contact name.
| contact_name | Display name or alias of the contact |
Definition at line 137 of file processor.hpp.