kdsoap-ws-discovery-client  0.2
wsdiscoveryserviceaggregator.h
1 /* Copyright (C) 2020 Casper Meijn <casper@meijn.net>
2  * SPDX-License-Identifier: GPL-3.0-or-later
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef WSDISCOVERYSERVICEAGGREGATOR_H
19 #define WSDISCOVERYSERVICEAGGREGATOR_H
20 
21 #include "wsdiscoveryclient_export.h"
22 #include <QObject>
23 
25 class WSDiscoveryServiceAggregatorPrivate;
26 
34 class WSDISCOVERYCLIENT_EXPORT WSDiscoveryServiceAggregator : public QObject
35 {
36  Q_OBJECT
37 
38 public:
43  WSDiscoveryServiceAggregator(QObject* parent = nullptr);
44 
49 
50 signals:
57  void serviceUpdated(const QSharedPointer<WSDiscoveryTargetService>& updatedService);
58 
59 public slots:
64  void updateService(const WSDiscoveryTargetService& receivedService);
65 
66 private:
67  WSDiscoveryServiceAggregatorPrivate* const d_ptr;
68  Q_DECLARE_PRIVATE(WSDiscoveryServiceAggregator)
69 };
70 
71 #endif // WSDISCOVERYSERVICEAGGREGATOR_H
Definition: wsdiscoverytargetservice.h:27
Aggregates multiple updates from the same WSDiscoveryTargetService.
Definition: wsdiscoveryserviceaggregator.h:34