#include </opt/build/repo/nap/modules/napportal/src/portalcomponent.h>
◆ PortalComponentInstance()
◆ getServer() [1/2]
- Returns
- the client or server this component receives events from.
◆ getServer() [2/2]
- Returns
- the client or server this component receives events from.
◆ init()
Initializes the portal component instance. Connect to portal item updates.
- Parameters
-
error | should hold the error message when initialization fails |
- Returns
- if the component initialized successfully
Reimplemented from ComponentInstance.
◆ onDestroy()
virtual void onDestroy |
( |
| ) |
|
|
overridevirtual |
Called when the portal is destroyed. Disconnect from portal item updates.
Reimplemented from Object.
◆ processRequest()
Processes a request type portal event
- Parameters
-
event | the portal event that is to be processed |
error | contains information when processing fails |
- Returns
- if the event was processed successfully
◆ processUpdate()
Processes an update type portal event
- Parameters
-
event | the portal event that is to be processed |
error | contains information when processing fails |
- Returns
- if the event was processed successfully