kdsoap-ws-discovery-client  0.4.0
wsdiscoveryserviceaggregator.h
1 /* SPDX-FileCopyrightText: 2020 Casper Meijn <casper@meijn.net>
2  * SPDX-License-Identifier: GPL-3.0-or-later
3  *
4  */
5 
6 #ifndef WSDISCOVERYSERVICEAGGREGATOR_H
7 #define WSDISCOVERYSERVICEAGGREGATOR_H
8 
9 #include "wsdiscoveryclient_export.h"
10 #include <QObject>
11 
13 class WSDiscoveryServiceAggregatorPrivate;
14 
22 class WSDISCOVERYCLIENT_EXPORT WSDiscoveryServiceAggregator : public QObject
23 {
24  Q_OBJECT
25 
26 public:
31  WSDiscoveryServiceAggregator(QObject *parent = nullptr);
32 
37 
38 Q_SIGNALS:
45  void serviceUpdated(const QSharedPointer<WSDiscoveryTargetService> &updatedService);
46 
47 public Q_SLOTS:
52  void updateService(const WSDiscoveryTargetService &receivedService);
53 
54 private:
55  WSDiscoveryServiceAggregatorPrivate *const d_ptr;
56  Q_DECLARE_PRIVATE(WSDiscoveryServiceAggregator)
57 };
58 
59 #endif // WSDISCOVERYSERVICEAGGREGATOR_H
Aggregates multiple updates from the same WSDiscoveryTargetService.
Definition: wsdiscoveryserviceaggregator.h:23
WSDiscoveryServiceAggregator(QObject *parent=nullptr)
void updateService(const WSDiscoveryTargetService &receivedService)
void serviceUpdated(const QSharedPointer< WSDiscoveryTargetService > &updatedService)
Definition: wsdiscoverytargetservice.h:16