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
 
const MAXON_METHOD ServiceDiscovery::JoinCallbackGetJoinCallback () const
 
const MAXON_METHOD ServiceDiscovery::UpdateCallbackGetUpdateCallback () const
 
const MAXON_METHOD 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()

const MAXON_METHOD ServiceDiscovery::JoinCallback& GetJoinCallback ( ) const

Returns the current join callback.

◆ GetUpdateCallback()

const MAXON_METHOD ServiceDiscovery::UpdateCallback& GetUpdateCallback ( ) const

Returns the current update callback.

◆ GetLeaveCallback()

const MAXON_METHOD 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.