kdsoap-ws-discovery-client  0.2
Public Slots | Signals | Public Member Functions | List of all members
WSDiscoveryServiceAggrigator Class Reference

Aggrigates multiple updates from the same WSDiscoveryTargetService. More...

#include <wsdiscoveryserviceaggrigator.h>

Inheritance diagram for WSDiscoveryServiceAggrigator:

Public Slots

void updateService (const WSDiscoveryTargetService &receivedService)
 

Signals

void serviceUpdated (const QSharedPointer< WSDiscoveryTargetService > &updatedService)
 

Public Member Functions

 WSDiscoveryServiceAggrigator (QObject *parent=nullptr)
 
 ~WSDiscoveryServiceAggrigator ()
 

Detailed Description

Aggrigates multiple updates from the same WSDiscoveryTargetService.

When receiving multiple probe and resolve matches of the same service, this class will aggrigate those into a single shared instance. This eases the administration needed by the application.

Constructor & Destructor Documentation

◆ WSDiscoveryServiceAggrigator()

WSDiscoveryServiceAggrigator::WSDiscoveryServiceAggrigator ( QObject *  parent = nullptr)

Create a WSDiscoveryClient

Parameters
parentThe QObject parent

◆ ~WSDiscoveryServiceAggrigator()

WSDiscoveryServiceAggrigator::~WSDiscoveryServiceAggrigator ( )

Destructor

Member Function Documentation

◆ serviceUpdated

void WSDiscoveryServiceAggrigator::serviceUpdated ( const QSharedPointer< WSDiscoveryTargetService > &  updatedService)
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.

Parameters
updatedServiceA pointer to the updated service

◆ updateService

void WSDiscoveryServiceAggrigator::updateService ( const WSDiscoveryTargetService receivedService)
slot

Provides a new service update.

Parameters
receivedServiceThe service with updated information

The documentation for this class was generated from the following file: