1 | // Copyright (C) 2019 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #include "qnetconmonitor_p.h" |
5 | |
6 | #include "private/qobject_p.h" |
7 | |
8 | QT_BEGIN_NAMESPACE |
9 | |
10 | Q_LOGGING_CATEGORY(lcNetMon, "qt.network.monitor"); |
11 | |
12 | // Note: this 'stub' version is never enabled (see QNetworkConnectionMonitor::isEnabled below) |
13 | // and thus should never affect QNAM in any unusuall way. Having this 'stub' version is similar |
14 | // to building Qt with bearer management configured out. |
15 | |
16 | class QNetworkConnectionMonitorPrivate : public QObjectPrivate |
17 | { |
18 | }; |
19 | |
20 | QNetworkConnectionMonitor::QNetworkConnectionMonitor() |
21 | : QObject(*new QNetworkConnectionMonitorPrivate) |
22 | { |
23 | } |
24 | |
25 | QNetworkConnectionMonitor::QNetworkConnectionMonitor(const QHostAddress &local, const QHostAddress &remote) |
26 | : QObject(*new QNetworkConnectionMonitorPrivate) |
27 | { |
28 | Q_UNUSED(local); |
29 | Q_UNUSED(remote); |
30 | } |
31 | |
32 | QNetworkConnectionMonitor::~QNetworkConnectionMonitor() |
33 | { |
34 | } |
35 | |
36 | bool QNetworkConnectionMonitor::setTargets(const QHostAddress &local, const QHostAddress &remote) |
37 | { |
38 | Q_UNUSED(local); |
39 | Q_UNUSED(remote); |
40 | |
41 | return false; |
42 | } |
43 | |
44 | bool QNetworkConnectionMonitor::startMonitoring() |
45 | { |
46 | return false; |
47 | } |
48 | |
49 | bool QNetworkConnectionMonitor::isMonitoring() const |
50 | { |
51 | return false; |
52 | } |
53 | |
54 | void QNetworkConnectionMonitor::stopMonitoring() |
55 | { |
56 | } |
57 | |
58 | bool QNetworkConnectionMonitor::isReachable() |
59 | { |
60 | return false; |
61 | } |
62 | |
63 | bool QNetworkConnectionMonitor::isEnabled() |
64 | { |
65 | return false; |
66 | } |
67 | |
68 | QT_END_NAMESPACE |
69 |