kdsoap-ws-discovery-client 0.4.0
|
Aggregates multiple updates from the same WSDiscoveryTargetService. More...
#include <wsdiscoveryserviceaggregator.h>
Public Slots | |
void | updateService (const WSDiscoveryTargetService &receivedService) |
Signals | |
void | serviceUpdated (const QSharedPointer< WSDiscoveryTargetService > &updatedService) |
Public Member Functions | |
WSDiscoveryServiceAggregator (QObject *parent=nullptr) | |
~WSDiscoveryServiceAggregator () | |
Aggregates multiple updates from the same WSDiscoveryTargetService.
When receiving multiple probe and resolve matches of the same service, this class will aggregate those into a single shared instance. This eases the administration needed by the application.
WSDiscoveryServiceAggregator::WSDiscoveryServiceAggregator | ( | QObject * | parent = nullptr | ) |
Create a WSDiscoveryClient
parent | The QObject parent |
WSDiscoveryServiceAggregator::~WSDiscoveryServiceAggregator | ( | ) |
Destructor
|
signal |
Emitted when a service has new information. The service instance is reused, when a new update is received. Therefore you can compare the pointers when looking for updates of a previous received service.
updatedService | A pointer to the updated service |
|
slot |
Provides a new service update.
receivedService | The service with updated information |