Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qconnmannetworkinformationbackend.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
#
ifndef
QCONNMANINFORMATIONBACKEND_H
6
#
define
QCONNMANINFORMATIONBACKEND_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtNetwork
/
private
/
qnetworkinformation_p
.
h
>
20
#
include
"qconnmanservice.h"
21
22
QT_BEGIN_NAMESPACE
23
24
class
QConnManNetworkInformationBackend
:
public
QNetworkInformationBackend
25
{
26
Q_OBJECT
27
public
:
28
QConnManNetworkInformationBackend
();
29
~
QConnManNetworkInformationBackend
() =
default
;
30
31
QString
name
()
const
override
;
32
QNetworkInformation
::
Features
featuresSupported
()
const
override
33
{
34
if
(!
isValid
(
)
)
35
return
{};
36
return
featuresSupportedStatic();
37
}
38
39
static
QNetworkInformation
::
Features
featuresSupportedStatic
()
40
{
41
using
Feature = QNetworkInformation::Feature;
42
return
QNetworkInformation::Features(Feature::Reachability | Feature::TransportMedium);
43
}
44
45
bool
isValid
()
const
{
return
iface.isValid(); }
46
47
void
onStateChanged
(
const
QString &state);
48
void
onTypeChanged
(
const
QString &type);
49
50
private
:
51
Q_DISABLE_COPY_MOVE
(
QConnManNetworkInformationBackend
)
52
53
QConnManInterface
iface;
54
};
55
56
QT_END_NAMESPACE
57
58
#
endif
QConnManInterfaceBase
Definition
qconnmanservice.h:29
QConnManInterfaceBase::connmanAvailable
static bool connmanAvailable()
Definition
qconnmanservice.cpp:45
QConnManInterface::QConnManInterface
QConnManInterface(QObject *parent=nullptr)
Definition
qconnmanservice.cpp:50
QConnManNetworkInformationBackendFactory
Definition
qconnmannetworkinformationbackend.cpp:57
QConnManNetworkInformationBackendFactory::~QConnManNetworkInformationBackendFactory
~QConnManNetworkInformationBackendFactory()=default
QConnManNetworkInformationBackendFactory::create
QNetworkInformationBackend * create(QNetworkInformation::Features requiredFeatures) const override
Create and return an instance of QNetworkInformationBackend.
Definition
qconnmannetworkinformationbackend.cpp:73
QConnManNetworkInformationBackendFactory::name
QString name() const override
Backend name, return the same in QNetworkInformationBackend::name().
Definition
qconnmannetworkinformationbackend.cpp:64
QConnManNetworkInformationBackendFactory::featuresSupported
QNetworkInformation::Features featuresSupported() const override
Features supported, return the same in QNetworkInformationBackend::featuresSupported().
Definition
qconnmannetworkinformationbackend.cpp:65
QConnManNetworkInformationBackend
Definition
qconnmannetworkinformationbackend.h:25
QConnManNetworkInformationBackend::featuresSupportedStatic
static QNetworkInformation::Features featuresSupportedStatic()
Definition
qconnmannetworkinformationbackend.h:39
QConnManNetworkInformationBackend::onStateChanged
void onStateChanged(const QString &state)
Definition
qconnmannetworkinformationbackend.cpp:98
QConnManNetworkInformationBackend::~QConnManNetworkInformationBackend
~QConnManNetworkInformationBackend()=default
QConnManNetworkInformationBackend::onTypeChanged
void onTypeChanged(const QString &type)
Definition
qconnmannetworkinformationbackend.cpp:105
QConnManNetworkInformationBackend::name
QString name() const override
Backend name, return the same in QNetworkInformationBackendFactory::name().
Definition
qconnmannetworkinformationbackend.cpp:51
QConnManNetworkInformationBackend::isValid
bool isValid() const
Definition
qconnmannetworkinformationbackend.h:45
QConnManNetworkInformationBackend::featuresSupported
QNetworkInformation::Features featuresSupported() const override
Features supported, return the same in QNetworkInformationBackendFactory::featuresSupported().
Definition
qconnmannetworkinformationbackend.h:32
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
backendName
static QString backendName()
Definition
qconnmannetworkinformationbackend.cpp:46
qtbase
src
plugins
networkinformation
connman
qconnmannetworkinformationbackend.h
Generated on
for Qt by
1.18.0