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
qohosnetworkinformationenums.h
Go to the documentation of this file.
1
// Copyright (C) 2026 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
#
ifndef
QOHOSNETWORKINFORMATIONENUMS_H
5
#
define
QOHOSNETWORKINFORMATIONENUMS_H
6
7
#
include
<
QtCore
/
qglobal
.
h
>
8
#
include
<
QtCore
/
qmetatype
.
h
>
9
#
include
<
array
>
10
#
include
<
info
/
application_target_sdk_version
.
h
>
11
12
QT_BEGIN_NAMESPACE
13
14
namespace
QtOhosNetworkInformation
{
15
16
namespace
enums
{
17
18
namespace
ohos
{
19
20
namespace
net
{
21
22
namespace
connection
{
23
24
enum
class
NetBearType
{
25
BEARER_BLUETOOTH
,
26
BEARER_CELLULAR
,
27
BEARER_ETHERNET
,
28
BEARER_VPN
,
29
BEARER_WIFI
,
30
};
31
32
enum
class
NetCap
{
33
NET_CAPABILITY_CHECKING_CONNECTIVITY
,
34
NET_CAPABILITY_INTERNET
,
35
NET_CAPABILITY_MMS
,
36
NET_CAPABILITY_NOT_METERED
,
37
NET_CAPABILITY_NOT_VPN
,
38
NET_CAPABILITY_PORTAL
,
39
NET_CAPABILITY_VALIDATED
,
40
};
41
42
}
43
44
}
45
46
}
47
48
}
49
50
}
51
52
namespace
QtOhos
{
53
54
template
<
typename
Enum>
55
struct
OhosEnumMeta
;
56
57
template
<>
58
struct
OhosEnumMeta
<
QtOhosNetworkInformation
::
enums
::
ohos
::
net
::
connection
::
NetBearType
>
59
{
60
using
Enum
=
QtOhosNetworkInformation
::
enums
::
ohos
::
net
::
connection
::
NetBearType
;
61
static
constexpr
const
char
*
fullTypeName
=
"@ohos.net.connection.NetBearType"
;
62
static
constexpr
std
::array<
std
::pair<
Enum
,
const
char
*>, 5>
enumeratorsNames
= {{
63
{
Enum
::
BEARER_BLUETOOTH
,
"BEARER_BLUETOOTH"
},
64
{
Enum
::
BEARER_CELLULAR
,
"BEARER_CELLULAR"
},
65
{
Enum
::
BEARER_ETHERNET
,
"BEARER_ETHERNET"
},
66
{
Enum
::
BEARER_VPN
,
"BEARER_VPN"
},
67
{
Enum
::
BEARER_WIFI
,
"BEARER_WIFI"
},
68
}};
69
};
70
71
template
<>
72
struct
OhosEnumMeta
<
QtOhosNetworkInformation
::
enums
::
ohos
::
net
::
connection
::
NetCap
>
73
{
74
using
Enum
=
QtOhosNetworkInformation
::
enums
::
ohos
::
net
::
connection
::
NetCap
;
75
static
constexpr
const
char
*
fullTypeName
=
"@ohos.net.connection.NetCap"
;
76
static
constexpr
std
::array<
std
::pair<
Enum
,
const
char
*>, 7>
enumeratorsNames
= {{
77
{
Enum
::
NET_CAPABILITY_CHECKING_CONNECTIVITY
,
"NET_CAPABILITY_CHECKING_CONNECTIVITY"
},
78
{
Enum
::
NET_CAPABILITY_INTERNET
,
"NET_CAPABILITY_INTERNET"
},
79
{
Enum
::
NET_CAPABILITY_MMS
,
"NET_CAPABILITY_MMS"
},
80
{
Enum
::
NET_CAPABILITY_NOT_METERED
,
"NET_CAPABILITY_NOT_METERED"
},
81
{
Enum
::
NET_CAPABILITY_NOT_VPN
,
"NET_CAPABILITY_NOT_VPN"
},
82
{
Enum
::
NET_CAPABILITY_PORTAL
,
"NET_CAPABILITY_PORTAL"
},
83
{
Enum
::
NET_CAPABILITY_VALIDATED
,
"NET_CAPABILITY_VALIDATED"
},
84
}};
85
};
86
87
}
88
89
QT_END_NAMESPACE
90
91
Q_DECLARE_METATYPE
(QT_PREPEND_NAMESPACE(QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType));
92
Q_DECLARE_METATYPE
(
QT_PREPEND_NAMESPACE
(
QtOhosNetworkInformation
::
enums
::
ohos
::
net
::
connection
::
NetCap
));
93
94
#
endif
QtOhosNetConnection
Definition
qohosnetconnection.cpp:15
QtOhosNetConnection::makeOhosNetStateDataSource
QOhosSupplier< NetState > makeOhosNetStateDataSource(QOhosConsumer< NetState > stateChangeConsumer)
Definition
qohosnetconnection.cpp:160
QtOhosNetConnection::NetCap
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap NetCap
Definition
qohosnetconnection_p.h:17
QtOhosNetConnection::NetBearType
QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType NetBearType
Definition
qohosnetconnection_p.h:16
QtOhosNetConnection::NetworkReachability
NetworkReachability
Definition
qohosnetconnection_p.h:20
QtOhosNetConnection::NetworkReachability::Local
@ Local
Definition
qohosnetconnection_p.h:22
QtOhosNetConnection::NetworkReachability::Online
@ Online
Definition
qohosnetconnection_p.h:24
QtOhosNetConnection::NetworkReachability::Site
@ Site
Definition
qohosnetconnection_p.h:23
QtOhosNetConnection::NetworkReachability::Disconnected
@ Disconnected
Definition
qohosnetconnection_p.h:21
QtOhosNetworkInformation::enums::ohos::net::connection
Definition
qohosnetworkinformationenums.h:22
QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType
NetBearType
Definition
qohosnetworkinformationenums.h:24
QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType::BEARER_VPN
@ BEARER_VPN
Definition
qohosnetworkinformationenums.h:28
QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType::BEARER_BLUETOOTH
@ BEARER_BLUETOOTH
Definition
qohosnetworkinformationenums.h:25
QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType::BEARER_WIFI
@ BEARER_WIFI
Definition
qohosnetworkinformationenums.h:29
QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType::BEARER_ETHERNET
@ BEARER_ETHERNET
Definition
qohosnetworkinformationenums.h:27
QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType::BEARER_CELLULAR
@ BEARER_CELLULAR
Definition
qohosnetworkinformationenums.h:26
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap
NetCap
Definition
qohosnetworkinformationenums.h:32
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap::NET_CAPABILITY_VALIDATED
@ NET_CAPABILITY_VALIDATED
Definition
qohosnetworkinformationenums.h:39
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap::NET_CAPABILITY_MMS
@ NET_CAPABILITY_MMS
Definition
qohosnetworkinformationenums.h:35
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap::NET_CAPABILITY_INTERNET
@ NET_CAPABILITY_INTERNET
Definition
qohosnetworkinformationenums.h:34
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap::NET_CAPABILITY_NOT_METERED
@ NET_CAPABILITY_NOT_METERED
Definition
qohosnetworkinformationenums.h:36
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap::NET_CAPABILITY_CHECKING_CONNECTIVITY
@ NET_CAPABILITY_CHECKING_CONNECTIVITY
Definition
qohosnetworkinformationenums.h:33
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap::NET_CAPABILITY_NOT_VPN
@ NET_CAPABILITY_NOT_VPN
Definition
qohosnetworkinformationenums.h:37
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap::NET_CAPABILITY_PORTAL
@ NET_CAPABILITY_PORTAL
Definition
qohosnetworkinformationenums.h:38
QtOhosNetworkInformation::enums::ohos::net
Definition
qohosnetworkinformationenums.h:20
QtOhosNetworkInformation::enums::ohos
Definition
qohosnetworkinformationenums.h:18
QtOhosNetworkInformation::enums
Definition
qohosnetworkinformationenums.h:16
QtOhosNetworkInformation
Definition
qohosnetworkinformationenums.h:14
QtOhos
Definition
qcore_ohos.cpp:59
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhosNetworkInformation::enums::ohos::net::connection::NetCap))
Q_DECLARE_METATYPE
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhosQpa::enums::kit::ShareKit::systemShare::SelectionMode))
QtOhosNetConnection::NetState
Definition
qohosnetconnection_p.h:28
QtOhosNetConnection::NetState::transport
std::optional< NetBearType > transport
Definition
qohosnetconnection_p.h:32
QtOhosNetConnection::NetState::reachability
NetworkReachability reachability
Definition
qohosnetconnection_p.h:29
QtOhosNetConnection::NetState::behindCaptivePortal
bool behindCaptivePortal
Definition
qohosnetconnection_p.h:30
QtOhosNetConnection::NetState::metered
bool metered
Definition
qohosnetconnection_p.h:31
QtOhos::OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType >
Definition
qohosnetworkinformationenums.h:59
QtOhos::OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType >::fullTypeName
static constexpr const char * fullTypeName
Definition
qohosnetworkinformationenums.h:61
QtOhos::OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType >::enumeratorsNames
static constexpr std::array< std::pair< Enum, const char * >, 5 > enumeratorsNames
Definition
qohosnetworkinformationenums.h:62
QtOhos::OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType >::Enum
QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType Enum
Definition
qohosnetworkinformationenums.h:60
QtOhos::OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetCap >
Definition
qohosnetworkinformationenums.h:73
QtOhos::OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetCap >::fullTypeName
static constexpr const char * fullTypeName
Definition
qohosnetworkinformationenums.h:75
QtOhos::OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetCap >::enumeratorsNames
static constexpr std::array< std::pair< Enum, const char * >, 7 > enumeratorsNames
Definition
qohosnetworkinformationenums.h:76
QtOhos::OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetCap >::Enum
QtOhosNetworkInformation::enums::ohos::net::connection::NetCap Enum
Definition
qohosnetworkinformationenums.h:74
QtOhos::OhosEnumMeta
Definition
qcore_ohos_p.h:45
qtbase
src
plugins
networkinformation
ohos
qohosnetworkinformationenums.h
Generated on
for Qt by
1.18.0