Skip to content

Inscoper::FunctionListener

FunctionListener class allows receiving notifications when a function is executed. More...

#include <FunctionListener.h>

Public Functions

Name
virtual ~FunctionListener()
Virtual destructor.
virtual void functionExecuted(const Inscoper::SubDeviceId & subDeviceId, Inscoper::EFunctionType functionType) =0
Notify function execution.
virtual void functionExecuted(const Inscoper::SubDeviceId & subDeviceId, Inscoper::EFunctionType functionType, const std::vector< unsigned char > & valueData, unsigned char valueType)
Notify function execution with the returned value data.

Detailed Description

class Inscoper::FunctionListener;

FunctionListener class allows receiving notifications when a function is executed.

This abstract class provides a callback mechanism for monitoring function execution events.

Public Functions Documentation

function ~FunctionListener

inline virtual ~FunctionListener()

Virtual destructor.

function functionExecuted

virtual void functionExecuted(
    const Inscoper::SubDeviceId & subDeviceId,
    Inscoper::EFunctionType functionType
) =0

Notify function execution.

Parameters:

  • subDeviceId : The sub-device ID
  • functionType : The type of the executed function

This callback method is invoked each time a function is executed. Must be overridden.

function functionExecuted

inline virtual void functionExecuted(
    const Inscoper::SubDeviceId & subDeviceId,
    Inscoper::EFunctionType functionType,
    const std::vector< unsigned char > & valueData,
    unsigned char valueType
)

Notify function execution with the returned value data.

Parameters:

  • subDeviceId : The sub-device ID
  • functionType : The type of the executed function
  • valueData : The raw value data bytes from the InscoperBox response
  • valueType : The type tag of the value (from AttrParams2)

This callback method is invoked when a function is executed and returns a value (typically for GET operations). Override this method to receive the value directly without needing a separate getValue() call.

The default implementation delegates to the 2-argument version for backward compatibility.


Updated on 2026-09-03 at 12:14:17 +0200