Differential D25682 Diff 73704 smb/kdsoap-ws-discovery-client/examples/onvif-discover/onvifdiscover.h
Changeset View
Changeset View
Standalone View
Standalone View
smb/kdsoap-ws-discovery-client/examples/onvif-discover/onvifdiscover.h
- This file was added.
1 | /* Copyright (C) 2019 Casper Meijn <casper@meijn.net> | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * This program is free software: you can redistribute it and/or modify | ||||
4 | * it under the terms of the GNU General Public License as published by | ||||
5 | * the Free Software Foundation, either version 3 of the License, or | ||||
6 | * (at your option) any later version. | ||||
7 | * | ||||
8 | * This program is distributed in the hope that it will be useful, | ||||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
11 | * GNU General Public License for more details. | ||||
12 | * | ||||
13 | * You should have received a copy of the GNU General Public License | ||||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
15 | */ | ||||
16 | #ifndef ONVIFDISCOVER_H | ||||
17 | #define ONVIFDISCOVER_H | ||||
18 | | ||||
19 | #include <QObject> | ||||
20 | | ||||
21 | class WSDiscoveryClient; | ||||
22 | class WSDiscoveryProbeJob; | ||||
23 | class WSDiscoveryTargetService; | ||||
24 | | ||||
25 | class OnvifDiscover : public QObject | ||||
26 | { | ||||
27 | Q_OBJECT | ||||
28 | public: | ||||
29 | explicit OnvifDiscover(QObject *parent = nullptr); | ||||
30 | ~OnvifDiscover(); | ||||
31 | | ||||
32 | public slots: | ||||
33 | void start(); | ||||
34 | | ||||
35 | private slots: | ||||
36 | void matchReceived(const QSharedPointer<WSDiscoveryTargetService>& matchedService); | ||||
37 | | ||||
38 | private: | ||||
39 | WSDiscoveryClient * m_client; | ||||
40 | WSDiscoveryProbeJob * m_probeJob; | ||||
41 | }; | ||||
42 | | ||||
43 | #endif // ONVIFDISCOVER_H |