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