#include <network_service_discovery.h>
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::JoinCallback & | GetJoinCallback () const |
MAXON_METHOD const ServiceDiscovery::UpdateCallback & | GetUpdateCallback () const |
MAXON_METHOD const ServiceDiscovery::LeaveCallback & | GetLeaveCallback () 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 ServiceSubscriptionRequestInterface * | Alloc (MAXON_SOURCE_LOCATION_DECLARATION, const ResourceIdentifier &identifier) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (ServiceSubscriptionRequestInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.servicesubscriptionrequest") | |
|
private |
|
static |
Allocates a service subscription request for a service described by the given identifier.
MAXON_METHOD ResourceIdentifier GetServiceIdentifier | ( | ) | const |
Returns the service identifier of this request.
MAXON_METHOD const ServiceDiscovery::JoinCallback& GetJoinCallback | ( | ) | const |
Returns the current join callback.
MAXON_METHOD const ServiceDiscovery::UpdateCallback& GetUpdateCallback | ( | ) | const |
Returns the current update callback.
MAXON_METHOD const ServiceDiscovery::LeaveCallback& GetLeaveCallback | ( | ) | const |
Returns the current leave callback.
MAXON_METHOD void SetJoinCallback | ( | ServiceDiscovery::JoinCallback | cb | ) |
Sets the current join callback.
MAXON_METHOD void SetUpdateCallback | ( | ServiceDiscovery::UpdateCallback | cb | ) |
Sets the current update callback.
MAXON_METHOD void SetLeaveCallback | ( | ServiceDiscovery::LeaveCallback | cb | ) |
Sets the current leave callback.