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

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

Public Member Functions

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 ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

std::string mName
 Property: 'Name' the name of the calendar in the portal. More...
 
ResourcePtr< OperationalCalendarmCalendar
 Property: 'Calendar' the calendar 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 an operational calendar item in a NAP portal.

Inheritance diagram for PortalItemOperationalCalendar:
[legend]
Collaboration diagram for PortalItemOperationalCalendar:
[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.

◆ 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

◆ mCalendar

Property: 'Calendar' the calendar linked to this portal item.

◆ mName

std::string mName

Property: 'Name' the name of the calendar in the portal.