#include </opt/build/repo/nap/modules/napportal/src/portalitem.h>
Public Member Functions | |
virtual bool | processUpdate (const APIEvent &event, utility::ErrorState &error)=0 |
virtual APIEventPtr | getDescriptor () const =0 |
virtual APIEventPtr | getValue () const =0 |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
Signal< const PortalItem & > | updateSignal |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Represents a single item (e.g. slider, toggle, button) in a NAP portal. Implementations are in derived classes, PortalItem only serves as a base class.
|
pure virtual |
Gets the descriptor as an API event. Implementation differs per derived class.
Implemented in PortalItemVec< T >, PortalItemColor< T >, PortalItemNumeric< T >, PortalItemSimple< T >, PortalItemButton, and PortalItemOperationalCalendar.
|
pure virtual |
Gets the current value as an API event. Implementation differs per derived class.
Implemented in PortalItemVec< T >, PortalItemColor< T >, PortalItemNumeric< T >, PortalItemSimple< T >, PortalItemButton, and PortalItemOperationalCalendar.
|
pure virtual |
Processes an update type API event. Implementation differs per derived class.
event | The event to be processed |
error | contains information when processing fails |
Implemented in PortalItemVec< T >, PortalItemColor< T >, PortalItemNumeric< T >, PortalItemSimple< T >, PortalItemSimple< std::string >, PortalItemButton, and PortalItemOperationalCalendar.
Signal<const PortalItem&> updateSignal |
Occurs when the portal item signals connected clients of an update