FormIt C++ API
v23.0.0 (2023.0.0)
|
FormIt::MessageBroadcaster class.
#include <FormItMessaging.h>
Static Public Member Functions | |
template<typename T > | |
static void | Broadcast (T const &message, typename T::Payload const &payload) |
Sends the given message to all Listeners that have subscribed to it. More... | |
template<typename T > | |
static void | Broadcast (T const &message, typename T::Payload &&payload) |
static FORMIT_CORE_EXPORT void | Broadcast (MessageVoidStruct const &message) |
static FORMIT_CORE_EXPORT void | SubscribeToMessage (MessageListener *listener, MessageStruct const &message) |
Makes sure that all future broadcasts of message do/don't go to the given listener. More... | |
static FORMIT_CORE_EXPORT MessageStruct const * | SubscribeToMessage (MessageListener *listener, 1::string const &message) |
static FORMIT_CORE_EXPORT void | UnsubscribeFromMessage (MessageListener *listener, MessageStruct const &message) |
static FORMIT_CORE_EXPORT MessageStruct const * | UnsubscribeFromMessage (MessageListener *listener, 1::string const &message) |
static FORMIT_CORE_EXPORT void | SubscribeToAllMessages (MessageListener *listener) |
SubscribeToAllMessages will broadcast all the messages to the given listener. More... | |
static FORMIT_CORE_EXPORT void | UnsubscribeFromAll (MessageListener *listener) |
static FORMIT_CORE_EXPORT void | RegisterScriptMessage (1::string const &, const FormIt::MessageStruct *) |
Register the message for scripting. More... | |
static::vector< 1::string > | GetScriptMessages () |
Get the list of messages. More... | |
static void | construct () |
static void | destroy () |
|
inlinestatic |
Sends the given message to all Listeners that have subscribed to it.
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
Get the list of messages.
|
static |
Register the message for scripting.
|
static |
SubscribeToAllMessages will broadcast all the messages to the given listener.
For example, this is used to pipe all the messages into the Web app for handling in native JS code.
|
static |
Makes sure that all future broadcasts of message do/don't go to the given listener.
|
static |
|
static |
|
static |
|
static |