kdsoap-ws-discovery-client: src/wsdiscoveryprobejob.h Source File

kdsoap-ws-discovery-client 0.4.0

Loading...
Searching...
No Matches
wsdiscoveryprobejob.h
1/* SPDX-FileCopyrightText: 2019 Casper Meijn <casper@meijn.net>
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 *
4 */
5#ifndef WSDISCOVERYPROBEJOB_H
6#define WSDISCOVERYPROBEJOB_H
7
8#include "wsdiscoveryclient_export.h"
9#include <KDSoapClient/KDQName>
10#include <QObject>
11#include <QTimer>
12#include <QUrl>
13
14class WSDiscoveryClient;
15class WSDiscoveryTargetService;
16
24 class WSDISCOVERYCLIENT_EXPORT WSDiscoveryProbeJob : public QObject
25{
26 Q_OBJECT
27public:
33 explicit WSDiscoveryProbeJob(WSDiscoveryClient *parent);
34
38 QList<KDQName> typeList() const;
42 void setTypeList(const QList<KDQName> &typeList);
46 void addType(const KDQName &type);
47
51 QList<QUrl> scopeList() const;
55 void setScopeList(const QList<QUrl> &scopeList);
59 void addScope(const QUrl &scope);
60
64 int interval() const;
68 void setInterval(int interval);
69
70Q_SIGNALS:
75 void matchReceived(const WSDiscoveryTargetService &matchedService);
76
77public Q_SLOTS:
81 void start();
85 void stop();
86
87 // TODO: Hide private interface
88private Q_SLOTS:
89 void timeout();
90 void probeMatchReceived(const WSDiscoveryTargetService &probeMatchService);
91
92private:
93 WSDiscoveryClient *m_client;
94 QList<KDQName> m_typeList;
95 QList<QUrl> m_scopeList;
96 QTimer m_timer;
97};
98
99#endif // WSDISCOVERYPROBEJOB_H
WSDiscoveryClient
WSDiscoveryClient is a low-level helper for sending and receiving WS-Discovery messages.
Definition wsdiscoveryclient.h:37
WSDiscoveryProbeJob::typeList
QList< KDQName > typeList() const
WSDiscoveryProbeJob::setInterval
void setInterval(int interval)
WSDiscoveryProbeJob::setTypeList
void setTypeList(const QList< KDQName > &typeList)
WSDiscoveryProbeJob::addScope
void addScope(const QUrl &scope)
WSDiscoveryProbeJob::scopeList
QList< QUrl > scopeList() const
WSDiscoveryProbeJob::start
void start()
WSDiscoveryProbeJob::addType
void addType(const KDQName &type)
WSDiscoveryProbeJob::setScopeList
void setScopeList(const QList< QUrl > &scopeList)
WSDiscoveryProbeJob::matchReceived
void matchReceived(const WSDiscoveryTargetService &matchedService)
WSDiscoveryProbeJob::interval
int interval() const
WSDiscoveryProbeJob::WSDiscoveryProbeJob
WSDiscoveryProbeJob(WSDiscoveryClient *parent)
WSDiscoveryProbeJob::stop
void stop()
WSDiscoveryTargetService
Definition wsdiscoverytargetservice.h:16