10#ifndef ISOBUS_VIRTUAL_TERMINAL_CLIENT_UPDATE_HELPER_HPP
11#define ISOBUS_VIRTUAL_TERMINAL_CLIENT_UPDATE_HELPER_HPP
75 bool set_attribute(std::uint16_t objectId, std::uint8_t attribute, std::uint32_t value);
82 std::shared_ptr<VirtualTerminalClient>
vtClient;
A helper class to update and track the state of an active working set.
std::shared_ptr< ControlFunction > client
The control function of the virtual terminal client to track.
A helper class to update and track the state of an active working set.
bool set_active_soft_key_mask(VirtualTerminalClient::MaskType maskType, std::uint16_t maskId, std::uint16_t softKeyMaskId)
Sets the active soft key mask.
bool decrease_numeric_value(std::uint16_t objectId, std::uint32_t step=1)
Decreases the numeric value of a tracked object.
void process_numeric_value_change_event(const VirtualTerminalClient::VTChangeNumericValueEvent &event)
Processes a numeric value change event.
EventCallbackHandle numericValueChangeEventHandle
Holds the handle to the numeric value change event listener.
std::shared_ptr< VirtualTerminalClient > vtClient
Holds the vt client.
bool increase_numeric_value(std::uint16_t objectId, std::uint32_t step=1)
Increases the numeric value of a tracked object.
VirtualTerminalClientUpdateHelper(std::shared_ptr< VirtualTerminalClient > client)
The constructor of class to help update the state of an active working set.
~VirtualTerminalClientUpdateHelper()
The destructor of class to unregister event listeners.
std::function< bool(std::uint16_t, std::uint32_t)> callbackValidateNumericValue
Holds the callback function to validate a numeric value change.
void set_callback_validate_numeric_value(const std::function< bool(std::uint16_t, std::uint32_t)> &callback)
Register a callback function to validate a numeric value change of a tracked object....
bool set_attribute(std::uint16_t objectId, std::uint8_t attribute, std::uint32_t value)
Sets the value of an attribute of a tracked object.
bool set_active_data_or_alarm_mask(std::uint16_t workingSetId, std::uint16_t dataOrAlarmMaskId)
Sets the active data/alarm mask.
bool set_numeric_value(std::uint16_t objectId, std::uint32_t value)
Sets the numeric value of a tracked object.
MaskType
The types of object pool masks.
A class to manage a client connection to a ISOBUS virtual terminal display.
A helper class to track the state of an active working set.
This namespace encompasses all of the ISO11783 stack's functionality to reduce global namespace pollu...
A struct for storing information of a VT change numeric value event.