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

kdsoap-ws-discovery-client 0.3.0

Loading...
Searching...
No Matches
wsdiscoverytargetservice.h
1/* SPDX-FileCopyrightText: 2019 Casper Meijn <casper@meijn.net>
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 *
4 */
5#ifndef WSDISCOVERYTARGETSERVICE_H
6#define WSDISCOVERYTARGETSERVICE_H
7
8#include "wsdiscoveryclient_export.h"
9#include <KDSoapClient/KDQName>
10#include <QDateTime>
11#include <QUrl>
12
13class WSDiscoveryTargetServiceData;
14
15 class WSDISCOVERYCLIENT_EXPORT WSDiscoveryTargetService
16{
17public:
18 explicit WSDiscoveryTargetService();
19 explicit WSDiscoveryTargetService(const QString &endpointReference);
20 WSDiscoveryTargetService(const WSDiscoveryTargetService &other);
21 ~WSDiscoveryTargetService();
22
23 void setEndpointReference(const QString &endpointReference);
24 QString endpointReference() const;
25 QList<KDQName> typeList() const;
26 void setTypeList(const QList<KDQName> &typeList);
27 QList<QUrl> scopeList() const;
28 void setScopeList(const QList<QUrl> &scopeList);
29 QList<QUrl> xAddrList() const;
30 void setXAddrList(const QList<QUrl> &xAddrList);
31 QDateTime lastSeen() const;
32 void setLastSeen(const QDateTime &lastSeen);
33 void updateLastSeen();
34
35 bool isMatchingType(const KDQName &matchingType) const;
36 bool isMatchingScope(const QUrl &matchingScope) const;
37
38private:
39 QSharedDataPointer<WSDiscoveryTargetServiceData> d;
40};
41
42#endif // WSDISCOVERYTARGETSERVICE_H
WSDiscoveryTargetService
Definition wsdiscoverytargetservice.h:16