Poco::OSP::JS

class ServiceListenerHolder

File Information

Library:
Package:
Header: Poco/OSP/JS/ServiceListenerWrapper.h

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Member Summary

Member Functions: dispose, onServiceRegistered, onServiceUnregistered

Inherited Functions: duplicate, referenceCount, release

Types Aliases

Ptr

using Ptr = Poco::AutoPtr < ServiceListenerHolder >;

Constructors

ServiceListenerHolder

ServiceListenerHolder(
    v8::Isolate * pIsolate,
    Poco::JS::Core::JSExecutor::Ptr pExecutor,
    Poco::OSP::ServiceRegistry & registry,
    const std::string & query,
    v8::Local < v8::Function > registeredCallback,
    v8::Local < v8::Function > unregisteredCallback
);

Destructor

~ServiceListenerHolder virtual

~ServiceListenerHolder();

Member Functions

dispose

void dispose();

onServiceRegistered protected

void onServiceRegistered(
    const Poco::OSP::ServiceRef::Ptr & pServiceRef
);

onServiceUnregistered protected

void onServiceUnregistered(
    const Poco::OSP::ServiceRef::Ptr & pServiceRef
);

Securely control IoT edge devices from anywhere   Connect a Device