#include <commandobservable.h>
Implements Observables for the command system.
Public Member Functions | |
MAXON_OBSERVABLE (Result< void >, ObservableCommandStatus,(const Id &commandId, const DataDictionary &statusMessage), ObservableCombinerRunAllComponent) | |
MAXON_OBSERVABLE (Result< void >, ObservableCommandInvoked,(const Id &commandId, const Result< COMMANDRESULT > &result), ObservableCombinerRunAllComponent) | |
MAXON_OBSERVABLE (Result< void >, ObservableCommandPrepareInfo,(const Id &commandId, const CommandDataRef &data), ObservableCombinerRunAllComponent) | |
MAXON_OBSERVABLE (Result< void >, ObservableCommandInvokedInfo,(const Id &commandId, const Result< COMMANDRESULT > &result, const CommandDataRef &data, const InvocationState &interactionState), ObservableCombinerRunAllComponent) | |
Private Member Functions | |
MAXON_INTERFACE (CommandObserverInterface, MAXON_REFERENCE_NORMAL, "net.maxon.command.interface.observer", MAXON_IMPLEMENTATION_MODULE("net.maxon.command")) | |
|
private |
MAXON_OBSERVABLE | ( | Result< void > | , |
ObservableCommandStatus | , | ||
(const Id &commandId, const DataDictionary &statusMessage) | , | ||
ObservableCombinerRunAllComponent | |||
) |
ObservableCommandStatus can be sent from each command to update the progress of the command execution. Can be subscribed for example to update status bars.
[in] | commandId | The command id. |
[in] | statusMessage | A dictionary containing the status messages. |
MAXON_OBSERVABLE | ( | Result< void > | , |
ObservableCommandInvoked | , | ||
(const Id &commandId, const Result< COMMANDRESULT > &result) | , | ||
ObservableCombinerRunAllComponent | |||
) |
ObservableCommandInvoked is sent by the command system whenever a command is invoked.
[in] | commandId | The command id. |
[in] | result | The result of the command invocation. |
MAXON_OBSERVABLE | ( | Result< void > | , |
ObservableCommandPrepareInfo | , | ||
(const Id &commandId, const CommandDataRef &data) | , | ||
ObservableCombinerRunAllComponent | |||
) |
ObservableCommandPrepareInfo is sent by the command system between the GetState and the Execute calls.
[in] | commandId | The command id. |
[in] | data | The command data. |
MAXON_OBSERVABLE | ( | Result< void > | , |
ObservableCommandInvokedInfo | , | ||
(const Id &commandId, const Result< COMMANDRESULT > &result, const CommandDataRef &data, const InvocationState &interactionState) | , | ||
ObservableCombinerRunAllComponent | |||
) |
ObservableCommandInvokedInfo is sent by the command system at each stage of the command invokation.
[in] | commandId | The command id. |
[in] | result | The result of the command invocation. |
[in] | data | The command data. |
[in] | interactionState | The stage of interaction. |