Hello Lucas,
the example "vertical list 2" demonstrates the (dynamically) creation of a vertical list that contains different types of items within the list. This approach is useful in case you have a variable number of list items (e.g. from a data base).
In this case, this example can be enhanced to connect each item with a property of a device class so that it can query its current value and change the value after some user interaction. For that purpose, the application has to provide additional methods GetItemValue() to return a reference to an int32 property that can be used for slider items to read/write their value, a method GetItemStatus() to return a bool property that can be used for switch items to read/write their status and a method GetItemAction() to return a slot method that can be used for button items.
The wrapper class has to be enhanced to forward the Action to a ButtonItem, to forward the Status to a SwitchItem and to forward the Value to a SliderItem.
The device class is the interface to the underlying ("real") machine and provides the data that is shown by the different list items. The method Reset() clears all values and states.
Here is the modified example.
Hope this helps...
Best regards,
Manfred.