winrt-Windows.Networking.Connectivity 4!10.0.28000.2705__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt/windows/networking/connectivity/__init__.py +56 -0
- winrt/windows/networking/connectivity/__init__.pyi +709 -0
- winrt/windows/networking/connectivity/_table.pywinrt +0 -0
- winrt/windows/networking/connectivity/py.typed +0 -0
- winrt_windows_networking_connectivity-4!10.0.28000.2705.dist-info/METADATA +49 -0
- winrt_windows_networking_connectivity-4!10.0.28000.2705.dist-info/RECORD +8 -0
- winrt_windows_networking_connectivity-4!10.0.28000.2705.dist-info/WHEEL +4 -0
- winrt_windows_networking_connectivity-4!10.0.28000.2705.dist-info/licenses/LICENSE +22 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import winrt.runtime._internals
|
|
6
|
+
import winrt.system
|
|
7
|
+
|
|
8
|
+
winrt.runtime._internals.load_projection(__spec__)
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"CellularApnAuthenticationType",
|
|
12
|
+
"ConnectionProfileDeleteStatus",
|
|
13
|
+
"DataUsageGranularity",
|
|
14
|
+
"DomainAuthenticationKind",
|
|
15
|
+
"DomainConnectivityLevel",
|
|
16
|
+
"NetworkAuthenticationType",
|
|
17
|
+
"NetworkConnectivityLevel",
|
|
18
|
+
"NetworkCostType",
|
|
19
|
+
"NetworkEncryptionType",
|
|
20
|
+
"NetworkTypes",
|
|
21
|
+
"RoamingStates",
|
|
22
|
+
"TriStates",
|
|
23
|
+
"WwanDataClass",
|
|
24
|
+
"WwanNetworkIPKind",
|
|
25
|
+
"WwanNetworkRegistrationState",
|
|
26
|
+
"NetworkUsageStates",
|
|
27
|
+
"AttributedNetworkUsage",
|
|
28
|
+
"CellularApnContext",
|
|
29
|
+
"ConnectionCost",
|
|
30
|
+
"ConnectionProfile",
|
|
31
|
+
"ConnectionProfileFilter",
|
|
32
|
+
"ConnectionSession",
|
|
33
|
+
"ConnectivityInterval",
|
|
34
|
+
"ConnectivityManager",
|
|
35
|
+
"DataPlanStatus",
|
|
36
|
+
"DataPlanUsage",
|
|
37
|
+
"DataUsage",
|
|
38
|
+
"IPInformation",
|
|
39
|
+
"LanIdentifier",
|
|
40
|
+
"LanIdentifierData",
|
|
41
|
+
"NetworkAdapter",
|
|
42
|
+
"NetworkInformation",
|
|
43
|
+
"NetworkItem",
|
|
44
|
+
"NetworkSecuritySettings",
|
|
45
|
+
"NetworkStateChangeEventDetails",
|
|
46
|
+
"NetworkUsage",
|
|
47
|
+
"ProviderNetworkUsage",
|
|
48
|
+
"ProxyConfiguration",
|
|
49
|
+
"RoutePolicy",
|
|
50
|
+
"WlanConnectionProfileDetails",
|
|
51
|
+
"WwanConnectionProfileDetails",
|
|
52
|
+
"NetworkStatusChangedEventHandler",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
winrt.runtime._internals.alias_method(ConnectionProfile, "get_local_usage_per_roaming_states", "get_local_usage")
|
|
56
|
+
NetworkStatusChangedEventHandler = typing.Callable[[winrt.system.Object], object]
|
|
@@ -0,0 +1,709 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
|
+
|
|
3
|
+
import collections.abc as _cabc
|
|
4
|
+
import datetime
|
|
5
|
+
import enum
|
|
6
|
+
import types
|
|
7
|
+
import typing
|
|
8
|
+
import uuid as _uuid
|
|
9
|
+
from builtins import property as _property
|
|
10
|
+
from typing_extensions import deprecated
|
|
11
|
+
|
|
12
|
+
import winrt.system
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
+
import winrt.windows.networking as windows_networking
|
|
16
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"CellularApnAuthenticationType",
|
|
20
|
+
"ConnectionProfileDeleteStatus",
|
|
21
|
+
"DataUsageGranularity",
|
|
22
|
+
"DomainAuthenticationKind",
|
|
23
|
+
"DomainConnectivityLevel",
|
|
24
|
+
"NetworkAuthenticationType",
|
|
25
|
+
"NetworkConnectivityLevel",
|
|
26
|
+
"NetworkCostType",
|
|
27
|
+
"NetworkEncryptionType",
|
|
28
|
+
"NetworkTypes",
|
|
29
|
+
"RoamingStates",
|
|
30
|
+
"TriStates",
|
|
31
|
+
"WwanDataClass",
|
|
32
|
+
"WwanNetworkIPKind",
|
|
33
|
+
"WwanNetworkRegistrationState",
|
|
34
|
+
"NetworkUsageStates",
|
|
35
|
+
"AttributedNetworkUsage",
|
|
36
|
+
"CellularApnContext",
|
|
37
|
+
"ConnectionCost",
|
|
38
|
+
"ConnectionProfile",
|
|
39
|
+
"ConnectionProfileFilter",
|
|
40
|
+
"ConnectionSession",
|
|
41
|
+
"ConnectivityInterval",
|
|
42
|
+
"ConnectivityManager",
|
|
43
|
+
"DataPlanStatus",
|
|
44
|
+
"DataPlanUsage",
|
|
45
|
+
"DataUsage",
|
|
46
|
+
"IPInformation",
|
|
47
|
+
"LanIdentifier",
|
|
48
|
+
"LanIdentifierData",
|
|
49
|
+
"NetworkAdapter",
|
|
50
|
+
"NetworkInformation",
|
|
51
|
+
"NetworkItem",
|
|
52
|
+
"NetworkSecuritySettings",
|
|
53
|
+
"NetworkStateChangeEventDetails",
|
|
54
|
+
"NetworkUsage",
|
|
55
|
+
"ProviderNetworkUsage",
|
|
56
|
+
"ProxyConfiguration",
|
|
57
|
+
"RoutePolicy",
|
|
58
|
+
"WlanConnectionProfileDetails",
|
|
59
|
+
"WwanConnectionProfileDetails",
|
|
60
|
+
"NetworkStatusChangedEventHandler",
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
class CellularApnAuthenticationType(enum.IntEnum):
|
|
64
|
+
NONE = 0
|
|
65
|
+
PAP = 1
|
|
66
|
+
CHAP = 2
|
|
67
|
+
MSCHAPV2 = 3
|
|
68
|
+
|
|
69
|
+
class ConnectionProfileDeleteStatus(enum.IntEnum):
|
|
70
|
+
SUCCESS = 0
|
|
71
|
+
DENIED_BY_USER = 1
|
|
72
|
+
DENIED_BY_SYSTEM = 2
|
|
73
|
+
UNKNOWN_ERROR = 3
|
|
74
|
+
|
|
75
|
+
class DataUsageGranularity(enum.IntEnum):
|
|
76
|
+
PER_MINUTE = 0
|
|
77
|
+
PER_HOUR = 1
|
|
78
|
+
PER_DAY = 2
|
|
79
|
+
TOTAL = 3
|
|
80
|
+
|
|
81
|
+
class DomainAuthenticationKind(enum.IntEnum):
|
|
82
|
+
NONE = 0
|
|
83
|
+
LDAP = 1
|
|
84
|
+
TLS = 2
|
|
85
|
+
|
|
86
|
+
class DomainConnectivityLevel(enum.IntEnum):
|
|
87
|
+
NONE = 0
|
|
88
|
+
UNAUTHENTICATED = 1
|
|
89
|
+
AUTHENTICATED = 2
|
|
90
|
+
|
|
91
|
+
class NetworkAuthenticationType(enum.IntEnum):
|
|
92
|
+
NONE = 0
|
|
93
|
+
UNKNOWN = 1
|
|
94
|
+
OPEN80211 = 2
|
|
95
|
+
SHARED_KEY80211 = 3
|
|
96
|
+
WPA = 4
|
|
97
|
+
WPA_PSK = 5
|
|
98
|
+
WPA_NONE = 6
|
|
99
|
+
RSNA = 7
|
|
100
|
+
RSNA_PSK = 8
|
|
101
|
+
IHV = 9
|
|
102
|
+
WPA3 = 10
|
|
103
|
+
WPA3_ENTERPRISE192_BITS = 10
|
|
104
|
+
WPA3_SAE = 11
|
|
105
|
+
OWE = 12
|
|
106
|
+
WPA3_ENTERPRISE = 13
|
|
107
|
+
|
|
108
|
+
class NetworkConnectivityLevel(enum.IntEnum):
|
|
109
|
+
NONE = 0
|
|
110
|
+
LOCAL_ACCESS = 1
|
|
111
|
+
CONSTRAINED_INTERNET_ACCESS = 2
|
|
112
|
+
INTERNET_ACCESS = 3
|
|
113
|
+
|
|
114
|
+
class NetworkCostType(enum.IntEnum):
|
|
115
|
+
UNKNOWN = 0
|
|
116
|
+
UNRESTRICTED = 1
|
|
117
|
+
FIXED = 2
|
|
118
|
+
VARIABLE = 3
|
|
119
|
+
|
|
120
|
+
class NetworkEncryptionType(enum.IntEnum):
|
|
121
|
+
NONE = 0
|
|
122
|
+
UNKNOWN = 1
|
|
123
|
+
WEP = 2
|
|
124
|
+
WEP40 = 3
|
|
125
|
+
WEP104 = 4
|
|
126
|
+
TKIP = 5
|
|
127
|
+
CCMP = 6
|
|
128
|
+
WPA_USE_GROUP = 7
|
|
129
|
+
RSN_USE_GROUP = 8
|
|
130
|
+
IHV = 9
|
|
131
|
+
GCMP = 10
|
|
132
|
+
GCMP256 = 11
|
|
133
|
+
|
|
134
|
+
class NetworkTypes(enum.IntFlag):
|
|
135
|
+
NONE = 0x0
|
|
136
|
+
INTERNET = 0x1
|
|
137
|
+
PRIVATE_NETWORK = 0x2
|
|
138
|
+
|
|
139
|
+
class RoamingStates(enum.IntFlag):
|
|
140
|
+
NONE = 0x0
|
|
141
|
+
NOT_ROAMING = 0x1
|
|
142
|
+
ROAMING = 0x2
|
|
143
|
+
|
|
144
|
+
class TriStates(enum.IntEnum):
|
|
145
|
+
DO_NOT_CARE = 0
|
|
146
|
+
NO = 1
|
|
147
|
+
YES = 2
|
|
148
|
+
|
|
149
|
+
class WwanDataClass(enum.IntFlag):
|
|
150
|
+
NONE = 0x0
|
|
151
|
+
GPRS = 0x1
|
|
152
|
+
EDGE = 0x2
|
|
153
|
+
UMTS = 0x4
|
|
154
|
+
HSDPA = 0x8
|
|
155
|
+
HSUPA = 0x10
|
|
156
|
+
LTE_ADVANCED = 0x20
|
|
157
|
+
NEW_RADIO_NON_STANDALONE = 0x40
|
|
158
|
+
NEW_RADIO_STANDALONE = 0x80
|
|
159
|
+
CDMA1X_RTT = 0x10000
|
|
160
|
+
CDMA1X_EVDO = 0x20000
|
|
161
|
+
CDMA1X_EVDO_REV_A = 0x40000
|
|
162
|
+
CDMA1X_EVDV = 0x80000
|
|
163
|
+
CDMA3X_RTT = 0x100000
|
|
164
|
+
CDMA1X_EVDO_REV_B = 0x200000
|
|
165
|
+
CDMA_UMB = 0x400000
|
|
166
|
+
CUSTOM = 0x80000000
|
|
167
|
+
|
|
168
|
+
class WwanNetworkIPKind(enum.IntEnum):
|
|
169
|
+
NONE = 0
|
|
170
|
+
IPV4 = 1
|
|
171
|
+
IPV6 = 2
|
|
172
|
+
IPV4V6 = 3
|
|
173
|
+
IPV4V6V4_XLAT = 4
|
|
174
|
+
|
|
175
|
+
class WwanNetworkRegistrationState(enum.IntEnum):
|
|
176
|
+
NONE = 0
|
|
177
|
+
DEREGISTERED = 1
|
|
178
|
+
SEARCHING = 2
|
|
179
|
+
HOME = 3
|
|
180
|
+
ROAMING = 4
|
|
181
|
+
PARTNER = 5
|
|
182
|
+
DENIED = 6
|
|
183
|
+
|
|
184
|
+
@typing.final
|
|
185
|
+
class NetworkUsageStates:
|
|
186
|
+
__match_args__ = ("roaming", "shared")
|
|
187
|
+
@_property
|
|
188
|
+
def roaming(self) -> TriStates: ...
|
|
189
|
+
@_property
|
|
190
|
+
def shared(self) -> TriStates: ...
|
|
191
|
+
def __new__(cls, roaming: TriStates = ..., shared: TriStates = ...) -> NetworkUsageStates: ...
|
|
192
|
+
def __replace__(self, /, **changes: typing.Any) -> NetworkUsageStates: ...
|
|
193
|
+
def unpack(self) -> tuple[TriStates, TriStates]: ...
|
|
194
|
+
|
|
195
|
+
@typing.final
|
|
196
|
+
class AttributedNetworkUsage(winrt.system.Object):
|
|
197
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
198
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
199
|
+
# System.String Windows.Networking.Connectivity.AttributedNetworkUsage::get_AttributionId()
|
|
200
|
+
@_property
|
|
201
|
+
def attribution_id(self) -> str: ...
|
|
202
|
+
# System.String Windows.Networking.Connectivity.AttributedNetworkUsage::get_AttributionName()
|
|
203
|
+
@_property
|
|
204
|
+
def attribution_name(self) -> str: ...
|
|
205
|
+
# Windows.Storage.Streams.IRandomAccessStreamReference Windows.Networking.Connectivity.AttributedNetworkUsage::get_AttributionThumbnail()
|
|
206
|
+
@_property
|
|
207
|
+
def attribution_thumbnail(self) -> windows_storage_streams.IRandomAccessStreamReference: ...
|
|
208
|
+
# System.UInt64 Windows.Networking.Connectivity.AttributedNetworkUsage::get_BytesReceived()
|
|
209
|
+
@_property
|
|
210
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
211
|
+
# System.UInt64 Windows.Networking.Connectivity.AttributedNetworkUsage::get_BytesSent()
|
|
212
|
+
@_property
|
|
213
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
214
|
+
|
|
215
|
+
@typing.final
|
|
216
|
+
class CellularApnContext(winrt.system.Object):
|
|
217
|
+
def __new__(cls) -> typing.Self: ...
|
|
218
|
+
# System.String Windows.Networking.Connectivity.CellularApnContext::get_UserName()
|
|
219
|
+
@_property
|
|
220
|
+
def user_name(self) -> str: ...
|
|
221
|
+
# System.Void Windows.Networking.Connectivity.CellularApnContext::put_UserName(System.String)
|
|
222
|
+
@user_name.setter
|
|
223
|
+
def user_name(self, value: str) -> None: ...
|
|
224
|
+
# System.String Windows.Networking.Connectivity.CellularApnContext::get_ProviderId()
|
|
225
|
+
@_property
|
|
226
|
+
def provider_id(self) -> str: ...
|
|
227
|
+
# System.Void Windows.Networking.Connectivity.CellularApnContext::put_ProviderId(System.String)
|
|
228
|
+
@provider_id.setter
|
|
229
|
+
def provider_id(self, value: str) -> None: ...
|
|
230
|
+
# System.String Windows.Networking.Connectivity.CellularApnContext::get_Password()
|
|
231
|
+
@_property
|
|
232
|
+
def password(self) -> str: ...
|
|
233
|
+
# System.Void Windows.Networking.Connectivity.CellularApnContext::put_Password(System.String)
|
|
234
|
+
@password.setter
|
|
235
|
+
def password(self, value: str) -> None: ...
|
|
236
|
+
# System.Boolean Windows.Networking.Connectivity.CellularApnContext::get_IsCompressionEnabled()
|
|
237
|
+
@_property
|
|
238
|
+
def is_compression_enabled(self) -> bool: ...
|
|
239
|
+
# System.Void Windows.Networking.Connectivity.CellularApnContext::put_IsCompressionEnabled(System.Boolean)
|
|
240
|
+
@is_compression_enabled.setter
|
|
241
|
+
def is_compression_enabled(self, value: bool) -> None: ...
|
|
242
|
+
# Windows.Networking.Connectivity.CellularApnAuthenticationType Windows.Networking.Connectivity.CellularApnContext::get_AuthenticationType()
|
|
243
|
+
@_property
|
|
244
|
+
def authentication_type(self) -> CellularApnAuthenticationType: ...
|
|
245
|
+
# System.Void Windows.Networking.Connectivity.CellularApnContext::put_AuthenticationType(Windows.Networking.Connectivity.CellularApnAuthenticationType)
|
|
246
|
+
@authentication_type.setter
|
|
247
|
+
def authentication_type(self, value: CellularApnAuthenticationType) -> None: ...
|
|
248
|
+
# System.String Windows.Networking.Connectivity.CellularApnContext::get_AccessPointName()
|
|
249
|
+
@_property
|
|
250
|
+
def access_point_name(self) -> str: ...
|
|
251
|
+
# System.Void Windows.Networking.Connectivity.CellularApnContext::put_AccessPointName(System.String)
|
|
252
|
+
@access_point_name.setter
|
|
253
|
+
def access_point_name(self, value: str) -> None: ...
|
|
254
|
+
# System.String Windows.Networking.Connectivity.CellularApnContext::get_ProfileName()
|
|
255
|
+
@_property
|
|
256
|
+
def profile_name(self) -> str: ...
|
|
257
|
+
# System.Void Windows.Networking.Connectivity.CellularApnContext::put_ProfileName(System.String)
|
|
258
|
+
@profile_name.setter
|
|
259
|
+
def profile_name(self, value: str) -> None: ...
|
|
260
|
+
|
|
261
|
+
@typing.final
|
|
262
|
+
class ConnectionCost(winrt.system.Object):
|
|
263
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
264
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
265
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionCost::get_ApproachingDataLimit()
|
|
266
|
+
@_property
|
|
267
|
+
def approaching_data_limit(self) -> bool: ...
|
|
268
|
+
# Windows.Networking.Connectivity.NetworkCostType Windows.Networking.Connectivity.ConnectionCost::get_NetworkCostType()
|
|
269
|
+
@_property
|
|
270
|
+
def network_cost_type(self) -> NetworkCostType: ...
|
|
271
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionCost::get_OverDataLimit()
|
|
272
|
+
@_property
|
|
273
|
+
def over_data_limit(self) -> bool: ...
|
|
274
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionCost::get_Roaming()
|
|
275
|
+
@_property
|
|
276
|
+
def roaming(self) -> bool: ...
|
|
277
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionCost::get_BackgroundDataUsageRestricted()
|
|
278
|
+
@_property
|
|
279
|
+
def background_data_usage_restricted(self) -> bool: ...
|
|
280
|
+
|
|
281
|
+
@typing.final
|
|
282
|
+
class ConnectionProfile(winrt.system.Object):
|
|
283
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
284
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
285
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.Connectivity.AttributedNetworkUsage>> Windows.Networking.Connectivity.ConnectionProfile::GetAttributedNetworkUsageAsync(Windows.Foundation.DateTime,Windows.Foundation.DateTime,Windows.Networking.Connectivity.NetworkUsageStates)
|
|
286
|
+
def get_attributed_network_usage_async(self, start_time: datetime.datetime, end_time: datetime.datetime, states: NetworkUsageStates | tuple[TriStates, TriStates], /) -> windows_foundation.IAsyncOperation[_cabc.Sequence[AttributedNetworkUsage]]: ...
|
|
287
|
+
# Windows.Networking.Connectivity.ConnectionCost Windows.Networking.Connectivity.ConnectionProfile::GetConnectionCost()
|
|
288
|
+
def get_connection_cost(self) -> ConnectionCost: ...
|
|
289
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.Connectivity.ConnectivityInterval>> Windows.Networking.Connectivity.ConnectionProfile::GetConnectivityIntervalsAsync(Windows.Foundation.DateTime,Windows.Foundation.DateTime,Windows.Networking.Connectivity.NetworkUsageStates)
|
|
290
|
+
def get_connectivity_intervals_async(self, start_time: datetime.datetime, end_time: datetime.datetime, states: NetworkUsageStates | tuple[TriStates, TriStates], /) -> windows_foundation.IAsyncOperation[_cabc.Sequence[ConnectivityInterval]]: ...
|
|
291
|
+
# Windows.Networking.Connectivity.DataPlanStatus Windows.Networking.Connectivity.ConnectionProfile::GetDataPlanStatus()
|
|
292
|
+
def get_data_plan_status(self) -> DataPlanStatus: ...
|
|
293
|
+
# Windows.Networking.Connectivity.DomainConnectivityLevel Windows.Networking.Connectivity.ConnectionProfile::GetDomainConnectivityLevel()
|
|
294
|
+
def get_domain_connectivity_level(self) -> DomainConnectivityLevel: ...
|
|
295
|
+
@typing.overload
|
|
296
|
+
# Windows.Networking.Connectivity.DataUsage Windows.Networking.Connectivity.ConnectionProfile::GetLocalUsage(Windows.Foundation.DateTime,Windows.Foundation.DateTime)
|
|
297
|
+
@deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.")
|
|
298
|
+
def get_local_usage(self, start_time: datetime.datetime, end_time: datetime.datetime, /) -> DataUsage: ...
|
|
299
|
+
@typing.overload
|
|
300
|
+
# Windows.Networking.Connectivity.DataUsage Windows.Networking.Connectivity.ConnectionProfile::GetLocalUsage(Windows.Foundation.DateTime,Windows.Foundation.DateTime,Windows.Networking.Connectivity.RoamingStates)
|
|
301
|
+
@deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.")
|
|
302
|
+
def get_local_usage(self, start_time: datetime.datetime, end_time: datetime.datetime, states: RoamingStates, /) -> DataUsage: ...
|
|
303
|
+
# Deprecated alias of get_local_usage() for pywinrt v3.x compatibility.
|
|
304
|
+
# Windows.Networking.Connectivity.DataUsage Windows.Networking.Connectivity.ConnectionProfile::GetLocalUsage(Windows.Foundation.DateTime,Windows.Foundation.DateTime,Windows.Networking.Connectivity.RoamingStates)
|
|
305
|
+
@deprecated("Use get_local_usage() instead.")
|
|
306
|
+
def get_local_usage_per_roaming_states(self, start_time: datetime.datetime, end_time: datetime.datetime, states: RoamingStates, /) -> DataUsage: ...
|
|
307
|
+
# Windows.Networking.Connectivity.NetworkConnectivityLevel Windows.Networking.Connectivity.ConnectionProfile::GetNetworkConnectivityLevel()
|
|
308
|
+
def get_network_connectivity_level(self) -> NetworkConnectivityLevel: ...
|
|
309
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Windows.Networking.Connectivity.ConnectionProfile::GetNetworkNames()
|
|
310
|
+
def get_network_names(self) -> _cabc.Sequence[str]: ...
|
|
311
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.Connectivity.NetworkUsage>> Windows.Networking.Connectivity.ConnectionProfile::GetNetworkUsageAsync(Windows.Foundation.DateTime,Windows.Foundation.DateTime,Windows.Networking.Connectivity.DataUsageGranularity,Windows.Networking.Connectivity.NetworkUsageStates)
|
|
312
|
+
def get_network_usage_async(self, start_time: datetime.datetime, end_time: datetime.datetime, granularity: DataUsageGranularity, states: NetworkUsageStates | tuple[TriStates, TriStates], /) -> windows_foundation.IAsyncOperation[_cabc.Sequence[NetworkUsage]]: ...
|
|
313
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.Connectivity.ProviderNetworkUsage>> Windows.Networking.Connectivity.ConnectionProfile::GetProviderNetworkUsageAsync(Windows.Foundation.DateTime,Windows.Foundation.DateTime,Windows.Networking.Connectivity.NetworkUsageStates)
|
|
314
|
+
def get_provider_network_usage_async(self, start_time: datetime.datetime, end_time: datetime.datetime, states: NetworkUsageStates | tuple[TriStates, TriStates], /) -> windows_foundation.IAsyncOperation[_cabc.Sequence[ProviderNetworkUsage]]: ...
|
|
315
|
+
# Windows.Foundation.IReference`1<System.Byte> Windows.Networking.Connectivity.ConnectionProfile::GetSignalBars()
|
|
316
|
+
def get_signal_bars(self) -> winrt.system.UInt8 | None: ...
|
|
317
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionProfile::IsDomainAuthenticatedBy(Windows.Networking.Connectivity.DomainAuthenticationKind)
|
|
318
|
+
def is_domain_authenticated_by(self, kind: DomainAuthenticationKind, /) -> bool: ...
|
|
319
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.Connectivity.ConnectionProfileDeleteStatus> Windows.Networking.Connectivity.ConnectionProfile::TryDeleteAsync()
|
|
320
|
+
def try_delete_async(self) -> windows_foundation.IAsyncOperation[ConnectionProfileDeleteStatus]: ...
|
|
321
|
+
# Windows.Networking.Connectivity.NetworkAdapter Windows.Networking.Connectivity.ConnectionProfile::get_NetworkAdapter()
|
|
322
|
+
@_property
|
|
323
|
+
def network_adapter(self) -> NetworkAdapter: ...
|
|
324
|
+
# Windows.Networking.Connectivity.NetworkSecuritySettings Windows.Networking.Connectivity.ConnectionProfile::get_NetworkSecuritySettings()
|
|
325
|
+
@_property
|
|
326
|
+
def network_security_settings(self) -> NetworkSecuritySettings: ...
|
|
327
|
+
# System.String Windows.Networking.Connectivity.ConnectionProfile::get_ProfileName()
|
|
328
|
+
@_property
|
|
329
|
+
def profile_name(self) -> str: ...
|
|
330
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionProfile::get_IsWlanConnectionProfile()
|
|
331
|
+
@_property
|
|
332
|
+
def is_wlan_connection_profile(self) -> bool: ...
|
|
333
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionProfile::get_IsWwanConnectionProfile()
|
|
334
|
+
@_property
|
|
335
|
+
def is_wwan_connection_profile(self) -> bool: ...
|
|
336
|
+
# Windows.Foundation.IReference`1<System.Guid> Windows.Networking.Connectivity.ConnectionProfile::get_ServiceProviderGuid()
|
|
337
|
+
@_property
|
|
338
|
+
def service_provider_guid(self) -> _uuid.UUID | None: ...
|
|
339
|
+
# Windows.Networking.Connectivity.WlanConnectionProfileDetails Windows.Networking.Connectivity.ConnectionProfile::get_WlanConnectionProfileDetails()
|
|
340
|
+
@_property
|
|
341
|
+
def wlan_connection_profile_details(self) -> WlanConnectionProfileDetails: ...
|
|
342
|
+
# Windows.Networking.Connectivity.WwanConnectionProfileDetails Windows.Networking.Connectivity.ConnectionProfile::get_WwanConnectionProfileDetails()
|
|
343
|
+
@_property
|
|
344
|
+
def wwan_connection_profile_details(self) -> WwanConnectionProfileDetails: ...
|
|
345
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionProfile::get_CanDelete()
|
|
346
|
+
@_property
|
|
347
|
+
def can_delete(self) -> bool: ...
|
|
348
|
+
|
|
349
|
+
@typing.final
|
|
350
|
+
class ConnectionProfileFilter(winrt.system.Object):
|
|
351
|
+
def __new__(cls) -> typing.Self: ...
|
|
352
|
+
# Windows.Foundation.IReference`1<System.Guid> Windows.Networking.Connectivity.ConnectionProfileFilter::get_ServiceProviderGuid()
|
|
353
|
+
@_property
|
|
354
|
+
def service_provider_guid(self) -> _uuid.UUID | None: ...
|
|
355
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_ServiceProviderGuid(Windows.Foundation.IReference`1<System.Guid>)
|
|
356
|
+
@service_provider_guid.setter
|
|
357
|
+
def service_provider_guid(self, value: _uuid.UUID | None) -> None: ...
|
|
358
|
+
# Windows.Networking.Connectivity.NetworkCostType Windows.Networking.Connectivity.ConnectionProfileFilter::get_NetworkCostType()
|
|
359
|
+
@_property
|
|
360
|
+
def network_cost_type(self) -> NetworkCostType: ...
|
|
361
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_NetworkCostType(Windows.Networking.Connectivity.NetworkCostType)
|
|
362
|
+
@network_cost_type.setter
|
|
363
|
+
def network_cost_type(self, value: NetworkCostType) -> None: ...
|
|
364
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionProfileFilter::get_IsWwanConnectionProfile()
|
|
365
|
+
@_property
|
|
366
|
+
def is_wwan_connection_profile(self) -> bool: ...
|
|
367
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_IsWwanConnectionProfile(System.Boolean)
|
|
368
|
+
@is_wwan_connection_profile.setter
|
|
369
|
+
def is_wwan_connection_profile(self, value: bool) -> None: ...
|
|
370
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionProfileFilter::get_IsWlanConnectionProfile()
|
|
371
|
+
@_property
|
|
372
|
+
def is_wlan_connection_profile(self) -> bool: ...
|
|
373
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_IsWlanConnectionProfile(System.Boolean)
|
|
374
|
+
@is_wlan_connection_profile.setter
|
|
375
|
+
def is_wlan_connection_profile(self, value: bool) -> None: ...
|
|
376
|
+
# System.Boolean Windows.Networking.Connectivity.ConnectionProfileFilter::get_IsConnected()
|
|
377
|
+
@_property
|
|
378
|
+
def is_connected(self) -> bool: ...
|
|
379
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_IsConnected(System.Boolean)
|
|
380
|
+
@is_connected.setter
|
|
381
|
+
def is_connected(self, value: bool) -> None: ...
|
|
382
|
+
# Windows.Foundation.IReference`1<System.Boolean> Windows.Networking.Connectivity.ConnectionProfileFilter::get_IsRoaming()
|
|
383
|
+
@_property
|
|
384
|
+
def is_roaming(self) -> bool | None: ...
|
|
385
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_IsRoaming(Windows.Foundation.IReference`1<System.Boolean>)
|
|
386
|
+
@is_roaming.setter
|
|
387
|
+
def is_roaming(self, value: bool | None) -> None: ...
|
|
388
|
+
# Windows.Foundation.IReference`1<System.Boolean> Windows.Networking.Connectivity.ConnectionProfileFilter::get_IsOverDataLimit()
|
|
389
|
+
@_property
|
|
390
|
+
def is_over_data_limit(self) -> bool | None: ...
|
|
391
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_IsOverDataLimit(Windows.Foundation.IReference`1<System.Boolean>)
|
|
392
|
+
@is_over_data_limit.setter
|
|
393
|
+
def is_over_data_limit(self, value: bool | None) -> None: ...
|
|
394
|
+
# Windows.Foundation.IReference`1<System.Boolean> Windows.Networking.Connectivity.ConnectionProfileFilter::get_IsBackgroundDataUsageRestricted()
|
|
395
|
+
@_property
|
|
396
|
+
def is_background_data_usage_restricted(self) -> bool | None: ...
|
|
397
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_IsBackgroundDataUsageRestricted(Windows.Foundation.IReference`1<System.Boolean>)
|
|
398
|
+
@is_background_data_usage_restricted.setter
|
|
399
|
+
def is_background_data_usage_restricted(self, value: bool | None) -> None: ...
|
|
400
|
+
# Windows.Storage.Streams.IBuffer Windows.Networking.Connectivity.ConnectionProfileFilter::get_RawData()
|
|
401
|
+
@_property
|
|
402
|
+
def raw_data(self) -> windows_storage_streams.IBuffer: ...
|
|
403
|
+
# Windows.Foundation.IReference`1<System.Guid> Windows.Networking.Connectivity.ConnectionProfileFilter::get_PurposeGuid()
|
|
404
|
+
@_property
|
|
405
|
+
def purpose_guid(self) -> _uuid.UUID | None: ...
|
|
406
|
+
# System.Void Windows.Networking.Connectivity.ConnectionProfileFilter::put_PurposeGuid(Windows.Foundation.IReference`1<System.Guid>)
|
|
407
|
+
@purpose_guid.setter
|
|
408
|
+
def purpose_guid(self, value: _uuid.UUID | None) -> None: ...
|
|
409
|
+
|
|
410
|
+
@typing.final
|
|
411
|
+
class ConnectionSession(windows_foundation.IClosable, winrt.system.Object):
|
|
412
|
+
def __enter__(self) -> typing.Self: ...
|
|
413
|
+
def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
|
|
414
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
415
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
416
|
+
# System.Void Windows.Networking.Connectivity.ConnectionSession::Close()
|
|
417
|
+
def close(self) -> None: ...
|
|
418
|
+
# Windows.Networking.Connectivity.ConnectionProfile Windows.Networking.Connectivity.ConnectionSession::get_ConnectionProfile()
|
|
419
|
+
@_property
|
|
420
|
+
def connection_profile(self) -> ConnectionProfile: ...
|
|
421
|
+
|
|
422
|
+
@typing.final
|
|
423
|
+
class ConnectivityInterval(winrt.system.Object):
|
|
424
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
425
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
426
|
+
# Windows.Foundation.TimeSpan Windows.Networking.Connectivity.ConnectivityInterval::get_ConnectionDuration()
|
|
427
|
+
@_property
|
|
428
|
+
def connection_duration(self) -> datetime.timedelta: ...
|
|
429
|
+
# Windows.Foundation.DateTime Windows.Networking.Connectivity.ConnectivityInterval::get_StartTime()
|
|
430
|
+
@_property
|
|
431
|
+
def start_time(self) -> datetime.datetime: ...
|
|
432
|
+
|
|
433
|
+
@typing.final
|
|
434
|
+
class ConnectivityManager_Static(winrt.system.Object_Static):
|
|
435
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.Connectivity.ConnectionSession> Windows.Networking.Connectivity.ConnectivityManager::AcquireConnectionAsync(Windows.Networking.Connectivity.CellularApnContext)
|
|
436
|
+
def acquire_connection_async(cls, cellular_apn_context: CellularApnContext, /) -> windows_foundation.IAsyncOperation[ConnectionSession]: ...
|
|
437
|
+
# System.Void Windows.Networking.Connectivity.ConnectivityManager::AddHttpRoutePolicy(Windows.Networking.Connectivity.RoutePolicy)
|
|
438
|
+
def add_http_route_policy(cls, route_policy: RoutePolicy, /) -> None: ...
|
|
439
|
+
# System.Void Windows.Networking.Connectivity.ConnectivityManager::RemoveHttpRoutePolicy(Windows.Networking.Connectivity.RoutePolicy)
|
|
440
|
+
def remove_http_route_policy(cls, route_policy: RoutePolicy, /) -> None: ...
|
|
441
|
+
|
|
442
|
+
@typing.final
|
|
443
|
+
class ConnectivityManager(winrt.system.Object, metaclass=ConnectivityManager_Static):
|
|
444
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
445
|
+
"""A class of static members only, so there is nothing to create."""
|
|
446
|
+
|
|
447
|
+
@typing.final
|
|
448
|
+
class DataPlanStatus(winrt.system.Object):
|
|
449
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
450
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
451
|
+
# Windows.Foundation.IReference`1<System.UInt32> Windows.Networking.Connectivity.DataPlanStatus::get_DataLimitInMegabytes()
|
|
452
|
+
@_property
|
|
453
|
+
def data_limit_in_megabytes(self) -> winrt.system.UInt32 | None: ...
|
|
454
|
+
# Windows.Networking.Connectivity.DataPlanUsage Windows.Networking.Connectivity.DataPlanStatus::get_DataPlanUsage()
|
|
455
|
+
@_property
|
|
456
|
+
def data_plan_usage(self) -> DataPlanUsage: ...
|
|
457
|
+
# Windows.Foundation.IReference`1<System.UInt64> Windows.Networking.Connectivity.DataPlanStatus::get_InboundBitsPerSecond()
|
|
458
|
+
@_property
|
|
459
|
+
def inbound_bits_per_second(self) -> winrt.system.UInt64 | None: ...
|
|
460
|
+
# Windows.Foundation.IReference`1<System.UInt32> Windows.Networking.Connectivity.DataPlanStatus::get_MaxTransferSizeInMegabytes()
|
|
461
|
+
@_property
|
|
462
|
+
def max_transfer_size_in_megabytes(self) -> winrt.system.UInt32 | None: ...
|
|
463
|
+
# Windows.Foundation.IReference`1<Windows.Foundation.DateTime> Windows.Networking.Connectivity.DataPlanStatus::get_NextBillingCycle()
|
|
464
|
+
@_property
|
|
465
|
+
def next_billing_cycle(self) -> datetime.datetime | None: ...
|
|
466
|
+
# Windows.Foundation.IReference`1<System.UInt64> Windows.Networking.Connectivity.DataPlanStatus::get_OutboundBitsPerSecond()
|
|
467
|
+
@_property
|
|
468
|
+
def outbound_bits_per_second(self) -> winrt.system.UInt64 | None: ...
|
|
469
|
+
|
|
470
|
+
@typing.final
|
|
471
|
+
class DataPlanUsage(winrt.system.Object):
|
|
472
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
473
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
474
|
+
# Windows.Foundation.DateTime Windows.Networking.Connectivity.DataPlanUsage::get_LastSyncTime()
|
|
475
|
+
@_property
|
|
476
|
+
def last_sync_time(self) -> datetime.datetime: ...
|
|
477
|
+
# System.UInt32 Windows.Networking.Connectivity.DataPlanUsage::get_MegabytesUsed()
|
|
478
|
+
@_property
|
|
479
|
+
def megabytes_used(self) -> winrt.system.UInt32: ...
|
|
480
|
+
|
|
481
|
+
@typing.final
|
|
482
|
+
@deprecated("DataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use NetworkUsage.")
|
|
483
|
+
class DataUsage(winrt.system.Object):
|
|
484
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
485
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
486
|
+
# System.UInt64 Windows.Networking.Connectivity.DataUsage::get_BytesReceived()
|
|
487
|
+
@_property
|
|
488
|
+
@deprecated("IDataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use INetworkUsage.")
|
|
489
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
490
|
+
# System.UInt64 Windows.Networking.Connectivity.DataUsage::get_BytesSent()
|
|
491
|
+
@_property
|
|
492
|
+
@deprecated("IDataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use INetworkUsage.")
|
|
493
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
494
|
+
|
|
495
|
+
@typing.final
|
|
496
|
+
class IPInformation(winrt.system.Object):
|
|
497
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
498
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
499
|
+
# Windows.Networking.Connectivity.NetworkAdapter Windows.Networking.Connectivity.IPInformation::get_NetworkAdapter()
|
|
500
|
+
@_property
|
|
501
|
+
def network_adapter(self) -> NetworkAdapter: ...
|
|
502
|
+
# Windows.Foundation.IReference`1<System.Byte> Windows.Networking.Connectivity.IPInformation::get_PrefixLength()
|
|
503
|
+
@_property
|
|
504
|
+
def prefix_length(self) -> winrt.system.UInt8 | None: ...
|
|
505
|
+
|
|
506
|
+
@typing.final
|
|
507
|
+
class LanIdentifier(winrt.system.Object):
|
|
508
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
509
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
510
|
+
# Windows.Networking.Connectivity.LanIdentifierData Windows.Networking.Connectivity.LanIdentifier::get_InfrastructureId()
|
|
511
|
+
@_property
|
|
512
|
+
def infrastructure_id(self) -> LanIdentifierData: ...
|
|
513
|
+
# System.Guid Windows.Networking.Connectivity.LanIdentifier::get_NetworkAdapterId()
|
|
514
|
+
@_property
|
|
515
|
+
def network_adapter_id(self) -> _uuid.UUID: ...
|
|
516
|
+
# Windows.Networking.Connectivity.LanIdentifierData Windows.Networking.Connectivity.LanIdentifier::get_PortId()
|
|
517
|
+
@_property
|
|
518
|
+
def port_id(self) -> LanIdentifierData: ...
|
|
519
|
+
|
|
520
|
+
@typing.final
|
|
521
|
+
class LanIdentifierData(winrt.system.Object):
|
|
522
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
523
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
524
|
+
# System.UInt32 Windows.Networking.Connectivity.LanIdentifierData::get_Type()
|
|
525
|
+
@_property
|
|
526
|
+
def type(self) -> winrt.system.UInt32: ...
|
|
527
|
+
# Windows.Foundation.Collections.IVectorView`1<System.Byte> Windows.Networking.Connectivity.LanIdentifierData::get_Value()
|
|
528
|
+
@_property
|
|
529
|
+
def value(self) -> _cabc.Sequence[winrt.system.UInt8]: ...
|
|
530
|
+
|
|
531
|
+
@typing.final
|
|
532
|
+
class NetworkAdapter(winrt.system.Object):
|
|
533
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
534
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
535
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.Connectivity.ConnectionProfile> Windows.Networking.Connectivity.NetworkAdapter::GetConnectedProfileAsync()
|
|
536
|
+
def get_connected_profile_async(self) -> windows_foundation.IAsyncOperation[ConnectionProfile]: ...
|
|
537
|
+
# System.UInt32 Windows.Networking.Connectivity.NetworkAdapter::get_IanaInterfaceType()
|
|
538
|
+
@_property
|
|
539
|
+
def iana_interface_type(self) -> winrt.system.UInt32: ...
|
|
540
|
+
# System.UInt64 Windows.Networking.Connectivity.NetworkAdapter::get_InboundMaxBitsPerSecond()
|
|
541
|
+
@_property
|
|
542
|
+
def inbound_max_bits_per_second(self) -> winrt.system.UInt64: ...
|
|
543
|
+
# System.Guid Windows.Networking.Connectivity.NetworkAdapter::get_NetworkAdapterId()
|
|
544
|
+
@_property
|
|
545
|
+
def network_adapter_id(self) -> _uuid.UUID: ...
|
|
546
|
+
# Windows.Networking.Connectivity.NetworkItem Windows.Networking.Connectivity.NetworkAdapter::get_NetworkItem()
|
|
547
|
+
@_property
|
|
548
|
+
def network_item(self) -> NetworkItem: ...
|
|
549
|
+
# System.UInt64 Windows.Networking.Connectivity.NetworkAdapter::get_OutboundMaxBitsPerSecond()
|
|
550
|
+
@_property
|
|
551
|
+
def outbound_max_bits_per_second(self) -> winrt.system.UInt64: ...
|
|
552
|
+
|
|
553
|
+
@typing.final
|
|
554
|
+
class NetworkInformation_Static(winrt.system.Object_Static):
|
|
555
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.Connectivity.ConnectionProfile>> Windows.Networking.Connectivity.NetworkInformation::FindConnectionProfilesAsync(Windows.Networking.Connectivity.ConnectionProfileFilter)
|
|
556
|
+
def find_connection_profiles_async(cls, p_profile_filter: ConnectionProfileFilter, /) -> windows_foundation.IAsyncOperation[_cabc.Sequence[ConnectionProfile]]: ...
|
|
557
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Networking.Connectivity.ConnectionProfile> Windows.Networking.Connectivity.NetworkInformation::GetConnectionProfiles()
|
|
558
|
+
def get_connection_profiles(cls) -> _cabc.Sequence[ConnectionProfile]: ...
|
|
559
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Networking.HostName> Windows.Networking.Connectivity.NetworkInformation::GetHostNames()
|
|
560
|
+
def get_host_names(cls) -> _cabc.Sequence[windows_networking.HostName]: ...
|
|
561
|
+
# Windows.Networking.Connectivity.ConnectionProfile Windows.Networking.Connectivity.NetworkInformation::GetInternetConnectionProfile()
|
|
562
|
+
def get_internet_connection_profile(cls) -> ConnectionProfile: ...
|
|
563
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Networking.Connectivity.LanIdentifier> Windows.Networking.Connectivity.NetworkInformation::GetLanIdentifiers()
|
|
564
|
+
def get_lan_identifiers(cls) -> _cabc.Sequence[LanIdentifier]: ...
|
|
565
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.Connectivity.ProxyConfiguration> Windows.Networking.Connectivity.NetworkInformation::GetProxyConfigurationAsync(Windows.Foundation.Uri)
|
|
566
|
+
def get_proxy_configuration_async(cls, uri: windows_foundation.Uri, /) -> windows_foundation.IAsyncOperation[ProxyConfiguration]: ...
|
|
567
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Networking.EndpointPair> Windows.Networking.Connectivity.NetworkInformation::GetSortedEndpointPairs(Windows.Foundation.Collections.IIterable`1<Windows.Networking.EndpointPair>,Windows.Networking.HostNameSortOptions)
|
|
568
|
+
def get_sorted_endpoint_pairs(cls, destination_list: _cabc.Iterable[windows_networking.EndpointPair], sort_options: windows_networking.HostNameSortOptions, /) -> _cabc.Sequence[windows_networking.EndpointPair]: ...
|
|
569
|
+
# Windows.Foundation.EventRegistrationToken Windows.Networking.Connectivity.NetworkInformation::add_NetworkStatusChanged(Windows.Networking.Connectivity.NetworkStatusChangedEventHandler)
|
|
570
|
+
def add_network_status_changed(cls, network_status_handler: NetworkStatusChangedEventHandler, /) -> windows_foundation.EventRegistrationToken: ...
|
|
571
|
+
# System.Void Windows.Networking.Connectivity.NetworkInformation::remove_NetworkStatusChanged(Windows.Foundation.EventRegistrationToken)
|
|
572
|
+
def remove_network_status_changed(cls, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
573
|
+
|
|
574
|
+
@typing.final
|
|
575
|
+
class NetworkInformation(winrt.system.Object, metaclass=NetworkInformation_Static):
|
|
576
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
577
|
+
"""A class of static members only, so there is nothing to create."""
|
|
578
|
+
|
|
579
|
+
@typing.final
|
|
580
|
+
class NetworkItem(winrt.system.Object):
|
|
581
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
582
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
583
|
+
# Windows.Networking.Connectivity.NetworkTypes Windows.Networking.Connectivity.NetworkItem::GetNetworkTypes()
|
|
584
|
+
def get_network_types(self) -> NetworkTypes: ...
|
|
585
|
+
# System.Guid Windows.Networking.Connectivity.NetworkItem::get_NetworkId()
|
|
586
|
+
@_property
|
|
587
|
+
def network_id(self) -> _uuid.UUID: ...
|
|
588
|
+
|
|
589
|
+
@typing.final
|
|
590
|
+
class NetworkSecuritySettings(winrt.system.Object):
|
|
591
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
592
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
593
|
+
# Windows.Networking.Connectivity.NetworkAuthenticationType Windows.Networking.Connectivity.NetworkSecuritySettings::get_NetworkAuthenticationType()
|
|
594
|
+
@_property
|
|
595
|
+
def network_authentication_type(self) -> NetworkAuthenticationType: ...
|
|
596
|
+
# Windows.Networking.Connectivity.NetworkEncryptionType Windows.Networking.Connectivity.NetworkSecuritySettings::get_NetworkEncryptionType()
|
|
597
|
+
@_property
|
|
598
|
+
def network_encryption_type(self) -> NetworkEncryptionType: ...
|
|
599
|
+
|
|
600
|
+
@typing.final
|
|
601
|
+
class NetworkStateChangeEventDetails(winrt.system.Object):
|
|
602
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
603
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
604
|
+
# System.Boolean Windows.Networking.Connectivity.NetworkStateChangeEventDetails::get_HasNewConnectionCost()
|
|
605
|
+
@_property
|
|
606
|
+
def has_new_connection_cost(self) -> bool: ...
|
|
607
|
+
# System.Boolean Windows.Networking.Connectivity.NetworkStateChangeEventDetails::get_HasNewDomainConnectivityLevel()
|
|
608
|
+
@_property
|
|
609
|
+
def has_new_domain_connectivity_level(self) -> bool: ...
|
|
610
|
+
# System.Boolean Windows.Networking.Connectivity.NetworkStateChangeEventDetails::get_HasNewHostNameList()
|
|
611
|
+
@_property
|
|
612
|
+
def has_new_host_name_list(self) -> bool: ...
|
|
613
|
+
# System.Boolean Windows.Networking.Connectivity.NetworkStateChangeEventDetails::get_HasNewInternetConnectionProfile()
|
|
614
|
+
@_property
|
|
615
|
+
def has_new_internet_connection_profile(self) -> bool: ...
|
|
616
|
+
# System.Boolean Windows.Networking.Connectivity.NetworkStateChangeEventDetails::get_HasNewNetworkConnectivityLevel()
|
|
617
|
+
@_property
|
|
618
|
+
def has_new_network_connectivity_level(self) -> bool: ...
|
|
619
|
+
# System.Boolean Windows.Networking.Connectivity.NetworkStateChangeEventDetails::get_HasNewWwanRegistrationState()
|
|
620
|
+
@_property
|
|
621
|
+
def has_new_wwan_registration_state(self) -> bool: ...
|
|
622
|
+
# System.Boolean Windows.Networking.Connectivity.NetworkStateChangeEventDetails::get_HasNewTetheringClientCount()
|
|
623
|
+
@_property
|
|
624
|
+
def has_new_tethering_client_count(self) -> bool: ...
|
|
625
|
+
# System.Boolean Windows.Networking.Connectivity.NetworkStateChangeEventDetails::get_HasNewTetheringOperationalState()
|
|
626
|
+
@_property
|
|
627
|
+
def has_new_tethering_operational_state(self) -> bool: ...
|
|
628
|
+
|
|
629
|
+
@typing.final
|
|
630
|
+
class NetworkUsage(winrt.system.Object):
|
|
631
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
632
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
633
|
+
# System.UInt64 Windows.Networking.Connectivity.NetworkUsage::get_BytesReceived()
|
|
634
|
+
@_property
|
|
635
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
636
|
+
# System.UInt64 Windows.Networking.Connectivity.NetworkUsage::get_BytesSent()
|
|
637
|
+
@_property
|
|
638
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
639
|
+
# Windows.Foundation.TimeSpan Windows.Networking.Connectivity.NetworkUsage::get_ConnectionDuration()
|
|
640
|
+
@_property
|
|
641
|
+
def connection_duration(self) -> datetime.timedelta: ...
|
|
642
|
+
|
|
643
|
+
@typing.final
|
|
644
|
+
class ProviderNetworkUsage(winrt.system.Object):
|
|
645
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
646
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
647
|
+
# System.UInt64 Windows.Networking.Connectivity.ProviderNetworkUsage::get_BytesReceived()
|
|
648
|
+
@_property
|
|
649
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
650
|
+
# System.UInt64 Windows.Networking.Connectivity.ProviderNetworkUsage::get_BytesSent()
|
|
651
|
+
@_property
|
|
652
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
653
|
+
# System.String Windows.Networking.Connectivity.ProviderNetworkUsage::get_ProviderId()
|
|
654
|
+
@_property
|
|
655
|
+
def provider_id(self) -> str: ...
|
|
656
|
+
|
|
657
|
+
@typing.final
|
|
658
|
+
class ProxyConfiguration(winrt.system.Object):
|
|
659
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
660
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
661
|
+
# System.Boolean Windows.Networking.Connectivity.ProxyConfiguration::get_CanConnectDirectly()
|
|
662
|
+
@_property
|
|
663
|
+
def can_connect_directly(self) -> bool: ...
|
|
664
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Foundation.Uri> Windows.Networking.Connectivity.ProxyConfiguration::get_ProxyUris()
|
|
665
|
+
@_property
|
|
666
|
+
def proxy_uris(self) -> _cabc.Sequence[windows_foundation.Uri]: ...
|
|
667
|
+
|
|
668
|
+
@typing.final
|
|
669
|
+
class RoutePolicy(winrt.system.Object):
|
|
670
|
+
def __new__(cls, connection_profile: ConnectionProfile, host_name: windows_networking.HostName, type: windows_networking.DomainNameType, /) -> typing.Self: ...
|
|
671
|
+
# Windows.Networking.Connectivity.ConnectionProfile Windows.Networking.Connectivity.RoutePolicy::get_ConnectionProfile()
|
|
672
|
+
@_property
|
|
673
|
+
def connection_profile(self) -> ConnectionProfile: ...
|
|
674
|
+
# Windows.Networking.HostName Windows.Networking.Connectivity.RoutePolicy::get_HostName()
|
|
675
|
+
@_property
|
|
676
|
+
def host_name(self) -> windows_networking.HostName: ...
|
|
677
|
+
# Windows.Networking.DomainNameType Windows.Networking.Connectivity.RoutePolicy::get_HostNameType()
|
|
678
|
+
@_property
|
|
679
|
+
def host_name_type(self) -> windows_networking.DomainNameType: ...
|
|
680
|
+
|
|
681
|
+
@typing.final
|
|
682
|
+
class WlanConnectionProfileDetails(winrt.system.Object):
|
|
683
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
684
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
685
|
+
# System.String Windows.Networking.Connectivity.WlanConnectionProfileDetails::GetConnectedSsid()
|
|
686
|
+
def get_connected_ssid(self) -> str: ...
|
|
687
|
+
|
|
688
|
+
@typing.final
|
|
689
|
+
class WwanConnectionProfileDetails(winrt.system.Object):
|
|
690
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
691
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
692
|
+
# Windows.Networking.Connectivity.WwanDataClass Windows.Networking.Connectivity.WwanConnectionProfileDetails::GetCurrentDataClass()
|
|
693
|
+
def get_current_data_class(self) -> WwanDataClass: ...
|
|
694
|
+
# Windows.Networking.Connectivity.WwanNetworkRegistrationState Windows.Networking.Connectivity.WwanConnectionProfileDetails::GetNetworkRegistrationState()
|
|
695
|
+
def get_network_registration_state(self) -> WwanNetworkRegistrationState: ...
|
|
696
|
+
# System.String Windows.Networking.Connectivity.WwanConnectionProfileDetails::get_AccessPointName()
|
|
697
|
+
@_property
|
|
698
|
+
def access_point_name(self) -> str: ...
|
|
699
|
+
# System.String Windows.Networking.Connectivity.WwanConnectionProfileDetails::get_HomeProviderId()
|
|
700
|
+
@_property
|
|
701
|
+
def home_provider_id(self) -> str: ...
|
|
702
|
+
# Windows.Networking.Connectivity.WwanNetworkIPKind Windows.Networking.Connectivity.WwanConnectionProfileDetails::get_IPKind()
|
|
703
|
+
@_property
|
|
704
|
+
def ip_kind(self) -> WwanNetworkIPKind: ...
|
|
705
|
+
# Windows.Foundation.Collections.IVectorView`1<System.Guid> Windows.Networking.Connectivity.WwanConnectionProfileDetails::get_PurposeGuids()
|
|
706
|
+
@_property
|
|
707
|
+
def purpose_guids(self) -> _cabc.Sequence[_uuid.UUID]: ...
|
|
708
|
+
|
|
709
|
+
type NetworkStatusChangedEventHandler = typing.Callable[[winrt.system.Object], object]
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: winrt-Windows.Networking.Connectivity
|
|
3
|
+
Version: 4!10.0.28000.2705
|
|
4
|
+
Summary: PyWinRT projection of the Windows.Networking.Connectivity namespace
|
|
5
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
6
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
19
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: winrt-runtime<5,>=4.0.0
|
|
23
|
+
Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2705
|
|
24
|
+
Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
|
|
25
|
+
Requires-Dist: winrt-windows-storage-streams>=4!10.0.28000.2705
|
|
26
|
+
Provides-Extra: all
|
|
27
|
+
Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
|
|
28
|
+
Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
|
|
29
|
+
Requires-Dist: winrt-windows-networking[all]>=4!10.0.28000.2705; extra == 'all'
|
|
30
|
+
Requires-Dist: winrt-windows-storage-streams[all]>=4!10.0.28000.2705; extra == 'all'
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
34
|
+
|
|
35
|
+
# winrt-Windows.Networking.Connectivity
|
|
36
|
+
|
|
37
|
+
Windows Runtime (WinRT) APIs for the `Windows.Networking.Connectivity` namespace.
|
|
38
|
+
|
|
39
|
+
This package provides the `winrt.windows.networking.connectivity` module.
|
|
40
|
+
|
|
41
|
+
The WinRT APIs in it are those of version 10.0.28000.2705 of the
|
|
42
|
+
`Microsoft.Windows.SDK.CPP` NuGet package.
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
pip install winrt-Windows.Networking.Connectivity
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
49
|
+
each namespace your code imports from.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/windows/networking/connectivity/__init__.py,sha256=qY_juiwIagsvjuhlT6jOfbbaehnhu0Vrx8AoU-TS2SA,1535
|
|
2
|
+
winrt/windows/networking/connectivity/__init__.pyi,sha256=U7SzZoVXh06E7PU1lZnLGc8FA3DFKCAF0AqLdQclR8s,40432
|
|
3
|
+
winrt/windows/networking/connectivity/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
winrt/windows/networking/connectivity/_table.pywinrt,sha256=1nFSJrV2jWrl5of-wbe8V6Lw4yeaCxDS4DijIdJdglc,87280
|
|
5
|
+
winrt_windows_networking_connectivity-4!10.0.28000.2705.dist-info/METADATA,sha256=Hs1TkI0hXcGq_WdOcRn9Va0B5D6BM3uBoFlgrcXj-lQ,2224
|
|
6
|
+
winrt_windows_networking_connectivity-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
7
|
+
winrt_windows_networking_connectivity-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
|
|
8
|
+
winrt_windows_networking_connectivity-4!10.0.28000.2705.dist-info/RECORD,,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE
|