|
Radix Relay
Hybrid mesh communications with Signal Protocol encryption
|
Handles presentation events and generates user-facing messages. More...
#include <presentation_handler.hpp>
Classes | |
| struct | out_queues_t |
Public Types | |
| using | in_queue_t = async::async_queue< events::presentation_event_variant_t > |
Public Member Functions | |
| presentation_handler (const out_queues_t &queues) | |
| Constructs a presentation handler. | |
| auto | handle (const events::presentation_event_variant_t &event) const -> void |
| Variant handler for standard_processor. | |
| auto | handle (const events::message_received &evt) const -> void |
| Handles a received encrypted message event. | |
| auto | handle (const events::session_established &evt) const -> void |
| Handles a session established event. | |
| auto | handle (const events::message_sent &evt) const -> void |
| Handles a message sent event. | |
| auto | handle (const events::bundle_published &evt) const -> void |
| Handles a bundle published event. | |
| auto | handle (const events::identities_listed &evt) const -> void |
| Handles an identities listed event. | |
Static Public Member Functions | |
| static auto | handle (const events::bundle_announcement_received &evt) -> void |
| Handles a bundle announcement received event. | |
| static auto | handle (const events::bundle_announcement_removed &evt) -> void |
| Handles a bundle announcement removed event. | |
| static auto | handle (const events::subscription_established &evt) -> void |
| Handles a subscription established event. | |
Handles presentation events and generates user-facing messages.
Converts presentation events (messages received, sessions established, etc.) into formatted display messages for the user interface.
Definition at line 19 of file presentation_handler.hpp.
| using radix_relay::core::presentation_handler::in_queue_t = async::async_queue<events::presentation_event_variant_t> |
Definition at line 22 of file presentation_handler.hpp.
|
inlineexplicit |
Constructs a presentation handler.
| queues | Output queues for display messages |
Definition at line 34 of file presentation_handler.hpp.
|
inlinestatic |
Handles a bundle announcement received event.
| evt | Bundle announcement received event |
Definition at line 81 of file presentation_handler.hpp.
|
inlinestatic |
Handles a bundle announcement removed event.
| evt | Bundle announcement removed event |
Definition at line 91 of file presentation_handler.hpp.
|
inline |
Handles a bundle published event.
| evt | Bundle published event |
Definition at line 120 of file presentation_handler.hpp.
References radix_relay::core::events::display_message::bundle_announcement, and radix_relay::platform::current_timestamp_ms().
|
inline |
Handles an identities listed event.
| evt | Identities listed event |
Definition at line 152 of file presentation_handler.hpp.
References radix_relay::platform::current_timestamp_ms(), and radix_relay::core::events::display_message::system.
|
inline |
Handles a received encrypted message event.
| evt | Message received event |
Definition at line 51 of file presentation_handler.hpp.
References radix_relay::core::events::display_message::incoming_message.
|
inline |
Handles a message sent event.
| evt | Message sent event |
Definition at line 101 of file presentation_handler.hpp.
References radix_relay::platform::current_timestamp_ms(), and radix_relay::core::events::display_message::outgoing_message.
|
inline |
Variant handler for standard_processor.
| event | Presentation event variant |
Definition at line 41 of file presentation_handler.hpp.
References handle().
Referenced by handle().
|
inline |
Handles a session established event.
| evt | Session established event |
Definition at line 67 of file presentation_handler.hpp.
References radix_relay::platform::current_timestamp_ms(), and radix_relay::core::events::display_message::session_event.
|
inlinestatic |
Handles a subscription established event.
| evt | Subscription established event |
Definition at line 142 of file presentation_handler.hpp.