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
8QT_BEGIN_NAMESPACE
9
10Q_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
16class QNetworkConnectionMonitorPrivate : public QObjectPrivate
17{
18};
19
20QNetworkConnectionMonitor::QNetworkConnectionMonitor()
21 : QObject(*new QNetworkConnectionMonitorPrivate)
22{
23}
24
25QNetworkConnectionMonitor::QNetworkConnectionMonitor(const QHostAddress &local, const QHostAddress &remote)
26 : QObject(*new QNetworkConnectionMonitorPrivate)
27{
28 Q_UNUSED(local);
29 Q_UNUSED(remote);
30}
31
32QNetworkConnectionMonitor::~QNetworkConnectionMonitor()
33{
34}
35
36bool QNetworkConnectionMonitor::setTargets(const QHostAddress &local, const QHostAddress &remote)
37{
38 Q_UNUSED(local);
39 Q_UNUSED(remote);
40
41 return false;
42}
43
44bool QNetworkConnectionMonitor::startMonitoring()
45{
46 return false;
47}
48
49bool QNetworkConnectionMonitor::isMonitoring() const
50{
51 return false;
52}
53
54void QNetworkConnectionMonitor::stopMonitoring()
55{
56}
57
58bool QNetworkConnectionMonitor::isReachable()
59{
60 return false;
61}
62
63bool QNetworkConnectionMonitor::isEnabled()
64{
65 return false;
66}
67
68QT_END_NAMESPACE
69

source code of qtbase/src/network/kernel/qnetconmonitor_stub.cpp