NAP
Public Member Functions | Public Attributes | List of all members
PortalItemDropDown Class Reference

#include </opt/build/repo/nap/system_modules/napportal/src/portalitemdropdown.h>

Public Member Functions

bool init (utility::ErrorState &errorState) override
 
void onDestroy () override
 
virtual bool processUpdate (const APIEvent &event, utility::ErrorState &error) override
 
virtual APIEventPtr getDescriptor () const override
 
virtual APIEventPtr getValue () const override
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

ResourcePtr< ParameterDropDownmParameter
 Property: 'Parameter' the parameter linked to this portal item. More...
 
- Public Attributes inherited from PortalItem
Signal< const PortalItem & > updateSignal
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

Represents a dropdown item in a NAP Portal

Inheritance diagram for PortalItemDropDown:
[legend]
Collaboration diagram for PortalItemDropDown:
[legend]

Member Function Documentation

◆ getDescriptor()

virtual APIEventPtr getDescriptor ( ) const
overridevirtual
Returns
the descriptor of the portal item as an API event

Implements PortalItem.

◆ getValue()

virtual APIEventPtr getValue ( ) const
overridevirtual
Returns
the current value of the portal item as an API event

Implements PortalItem.

◆ init()

bool init ( utility::ErrorState errorState)
overridevirtual

Subscribes to the parameter changed signal

Parameters
errorStatecontains the error message when initialization fails
Returns
if initialization succeeded.

Reimplemented from Object.

◆ onDestroy()

void onDestroy ( )
overridevirtual

Unsubscribes from the parameter changed signal

Reimplemented from Object.

◆ processUpdate()

virtual bool processUpdate ( const APIEvent event,
utility::ErrorState error 
)
overridevirtual

Processes an update type API event.

Parameters
eventThe event to be processed
errorcontains information when processing fails
Returns
if the event was processed successfully

Implements PortalItem.

Member Data Documentation

◆ mParameter

Property: 'Parameter' the parameter linked to this portal item.