ServiceSubscriptionRequestInterface Class Reference

#include <network_service_discovery.h>

Detailed Description

A service subscription request to be passed to NetworkServiceBusInterface::Subscribe. Callbacks for join/update/leave events can be added to the request before it is submitted.

Public Member Functions

MAXON_METHOD ResourceIdentifier GetServiceIdentifier () const
 
MAXON_METHOD const ServiceDiscovery::JoinCallbackGetJoinCallback () const
 
MAXON_METHOD const ServiceDiscovery::UpdateCallbackGetUpdateCallback () const
 
MAXON_METHOD const ServiceDiscovery::LeaveCallbackGetLeaveCallback () const
 
MAXON_METHOD void SetJoinCallback (ServiceDiscovery::JoinCallback cb)
 
MAXON_METHOD void SetUpdateCallback (ServiceDiscovery::UpdateCallback cb)
 
MAXON_METHOD void SetLeaveCallback (ServiceDiscovery::LeaveCallback cb)
 

Static Public Member Functions

static MAXON_METHOD ServiceSubscriptionRequestInterfaceAlloc (MAXON_SOURCE_LOCATION_DECLARATION, const ResourceIdentifier &identifier)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (ServiceSubscriptionRequestInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.servicesubscriptionrequest")
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( ServiceSubscriptionRequestInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.servicesubscriptionrequest"   
)
private

◆ Alloc()

Allocates a service subscription request for a service described by the given identifier.

◆ GetServiceIdentifier()

MAXON_METHOD ResourceIdentifier GetServiceIdentifier ( ) const

Returns the service identifier of this request.

◆ GetJoinCallback()

MAXON_METHOD const ServiceDiscovery::JoinCallback& GetJoinCallback ( ) const

Returns the current join callback.

◆ GetUpdateCallback()

MAXON_METHOD const ServiceDiscovery::UpdateCallback& GetUpdateCallback ( ) const

Returns the current update callback.

◆ GetLeaveCallback()

MAXON_METHOD const ServiceDiscovery::LeaveCallback& GetLeaveCallback ( ) const

Returns the current leave callback.

◆ SetJoinCallback()

MAXON_METHOD void SetJoinCallback ( ServiceDiscovery::JoinCallback  cb)

Sets the current join callback.

◆ SetUpdateCallback()

MAXON_METHOD void SetUpdateCallback ( ServiceDiscovery::UpdateCallback  cb)

Sets the current update callback.

◆ SetLeaveCallback()

MAXON_METHOD void SetLeaveCallback ( ServiceDiscovery::LeaveCallback  cb)

Sets the current leave callback.