kdsoap-ws-discovery-client 0.2
wsdiscoverytargetservice.h
1/* Copyright (C) 2019 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#ifndef WSDISCOVERYTARGETSERVICE_H
18#define WSDISCOVERYTARGETSERVICE_H
19
20#include "wsdiscoveryclient_export.h"
21#include <KDSoapClient/KDQName>
22#include <QDateTime>
23#include <QUrl>
24
25class WSDiscoveryTargetServiceData;
26
27class WSDISCOVERYCLIENT_EXPORT WSDiscoveryTargetService
28{
29public:
30 explicit WSDiscoveryTargetService();
31 explicit WSDiscoveryTargetService(const QString &endpointReference);
34
35 void setEndpointReference(const QString &endpointReference);
36 QString endpointReference() const;
37 QList<KDQName> typeList() const;
38 void setTypeList(const QList<KDQName> &typeList);
39 QList<QUrl> scopeList() const;
40 void setScopeList(const QList<QUrl> &scopeList);
41 QList<QUrl> xAddrList() const;
42 void setXAddrList(const QList<QUrl> &xAddrList);
43 QDateTime lastSeen() const;
44 void setLastSeen(const QDateTime &lastSeen);
45 void updateLastSeen();
46
47 bool isMatchingType(const KDQName &matchingType) const;
48 bool isMatchingScope(const QUrl &matchingScope) const;
49
50private:
51 QSharedDataPointer<WSDiscoveryTargetServiceData> d;
52};
53
54#endif // WSDISCOVERYTARGETSERVICE_H
Definition: wsdiscoverytargetservice.h:28