winrt-Windows.Networking.BackgroundTransfer 2.2.0__cp313-cp313-win32.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/_winrt_windows_networking_backgroundtransfer.cp313-win32.pyd +0 -0
- winrt/_winrt_windows_networking_backgroundtransfer.pyi +432 -0
- winrt/windows/networking/backgroundtransfer/__init__.py +80 -0
- winrt/windows/networking/backgroundtransfer/py.typed +0 -0
- winrt_Windows.Networking.BackgroundTransfer-2.2.0.dist-info/METADATA +32 -0
- winrt_Windows.Networking.BackgroundTransfer-2.2.0.dist-info/RECORD +8 -0
- winrt_Windows.Networking.BackgroundTransfer-2.2.0.dist-info/WHEEL +5 -0
- winrt_Windows.Networking.BackgroundTransfer-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.applicationmodel.background as windows_applicationmodel_background
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
+
import winrt.windows.security.credentials as windows_security_credentials
|
|
16
|
+
import winrt.windows.storage as windows_storage
|
|
17
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
18
|
+
import winrt.windows.ui.notifications as windows_ui_notifications
|
|
19
|
+
import winrt.windows.web as windows_web
|
|
20
|
+
|
|
21
|
+
from winrt.windows.networking.backgroundtransfer import BackgroundTransferBehavior, BackgroundTransferCostPolicy, BackgroundTransferPriority, BackgroundTransferStatus
|
|
22
|
+
|
|
23
|
+
Self = typing.TypeVar('Self')
|
|
24
|
+
|
|
25
|
+
@typing.final
|
|
26
|
+
class BackgroundDownloadProgress:
|
|
27
|
+
bytes_received: winrt.system.UInt64
|
|
28
|
+
total_bytes_to_receive: winrt.system.UInt64
|
|
29
|
+
status: BackgroundTransferStatus
|
|
30
|
+
has_response_changed: bool
|
|
31
|
+
has_restarted: bool
|
|
32
|
+
def __init__(self, bytes_received: winrt.system.UInt64, total_bytes_to_receive: winrt.system.UInt64, status: BackgroundTransferStatus, has_response_changed: bool, has_restarted: bool) -> None: ...
|
|
33
|
+
|
|
34
|
+
@typing.final
|
|
35
|
+
class BackgroundTransferFileRange:
|
|
36
|
+
offset: winrt.system.UInt64
|
|
37
|
+
length: winrt.system.UInt64
|
|
38
|
+
def __init__(self, offset: winrt.system.UInt64, length: winrt.system.UInt64) -> None: ...
|
|
39
|
+
|
|
40
|
+
@typing.final
|
|
41
|
+
class BackgroundUploadProgress:
|
|
42
|
+
bytes_received: winrt.system.UInt64
|
|
43
|
+
bytes_sent: winrt.system.UInt64
|
|
44
|
+
total_bytes_to_receive: winrt.system.UInt64
|
|
45
|
+
total_bytes_to_send: winrt.system.UInt64
|
|
46
|
+
status: BackgroundTransferStatus
|
|
47
|
+
has_response_changed: bool
|
|
48
|
+
has_restarted: bool
|
|
49
|
+
def __init__(self, bytes_received: winrt.system.UInt64, bytes_sent: winrt.system.UInt64, total_bytes_to_receive: winrt.system.UInt64, total_bytes_to_send: winrt.system.UInt64, status: BackgroundTransferStatus, has_response_changed: bool, has_restarted: bool) -> None: ...
|
|
50
|
+
|
|
51
|
+
@typing.final
|
|
52
|
+
class BackgroundDownloader_Static(type):
|
|
53
|
+
@typing.overload
|
|
54
|
+
def get_current_downloads_async(cls) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[DownloadOperation]]: ...
|
|
55
|
+
@typing.overload
|
|
56
|
+
def get_current_downloads_async(cls, group: str, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[DownloadOperation]]: ...
|
|
57
|
+
def get_current_downloads_for_transfer_group_async(cls, group: typing.Optional[BackgroundTransferGroup], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[DownloadOperation]]: ...
|
|
58
|
+
def request_unconstrained_downloads_async(cls, operations: typing.Iterable[DownloadOperation], /) -> windows_foundation.IAsyncOperation[UnconstrainedTransferRequestResult]: ...
|
|
59
|
+
|
|
60
|
+
@typing.final
|
|
61
|
+
class BackgroundDownloader(winrt.system.Object, metaclass=BackgroundDownloader_Static):
|
|
62
|
+
@staticmethod
|
|
63
|
+
def _from(obj: winrt.system.Object, /) -> BackgroundDownloader: ...
|
|
64
|
+
@typing.overload
|
|
65
|
+
def __new__(cls: typing.Type[BackgroundDownloader], completion_group: typing.Optional[BackgroundTransferCompletionGroup]) -> BackgroundDownloader: ...
|
|
66
|
+
@typing.overload
|
|
67
|
+
def __new__(cls: typing.Type[BackgroundDownloader]) -> BackgroundDownloader: ...
|
|
68
|
+
@typing.overload
|
|
69
|
+
def create_download(self, uri: typing.Optional[windows_foundation.Uri], result_file: typing.Optional[windows_storage.IStorageFile], /) -> typing.Optional[DownloadOperation]: ...
|
|
70
|
+
@typing.overload
|
|
71
|
+
def create_download(self, uri: typing.Optional[windows_foundation.Uri], result_file: typing.Optional[windows_storage.IStorageFile], request_body_file: typing.Optional[windows_storage.IStorageFile], /) -> typing.Optional[DownloadOperation]: ...
|
|
72
|
+
def create_download_async(self, uri: typing.Optional[windows_foundation.Uri], result_file: typing.Optional[windows_storage.IStorageFile], request_body_stream: typing.Optional[windows_storage_streams.IInputStream], /) -> windows_foundation.IAsyncOperation[DownloadOperation]: ...
|
|
73
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
74
|
+
@_property
|
|
75
|
+
def failure_toast_notification(self) -> typing.Optional[windows_ui_notifications.ToastNotification]: ...
|
|
76
|
+
@failure_toast_notification.setter
|
|
77
|
+
def failure_toast_notification(self, value: typing.Optional[windows_ui_notifications.ToastNotification]) -> None: ...
|
|
78
|
+
@_property
|
|
79
|
+
def success_tile_notification(self) -> typing.Optional[windows_ui_notifications.TileNotification]: ...
|
|
80
|
+
@success_tile_notification.setter
|
|
81
|
+
def success_tile_notification(self, value: typing.Optional[windows_ui_notifications.TileNotification]) -> None: ...
|
|
82
|
+
@_property
|
|
83
|
+
def success_toast_notification(self) -> typing.Optional[windows_ui_notifications.ToastNotification]: ...
|
|
84
|
+
@success_toast_notification.setter
|
|
85
|
+
def success_toast_notification(self, value: typing.Optional[windows_ui_notifications.ToastNotification]) -> None: ...
|
|
86
|
+
@_property
|
|
87
|
+
def transfer_group(self) -> typing.Optional[BackgroundTransferGroup]: ...
|
|
88
|
+
@transfer_group.setter
|
|
89
|
+
def transfer_group(self, value: typing.Optional[BackgroundTransferGroup]) -> None: ...
|
|
90
|
+
@_property
|
|
91
|
+
def failure_tile_notification(self) -> typing.Optional[windows_ui_notifications.TileNotification]: ...
|
|
92
|
+
@failure_tile_notification.setter
|
|
93
|
+
def failure_tile_notification(self, value: typing.Optional[windows_ui_notifications.TileNotification]) -> None: ...
|
|
94
|
+
@_property
|
|
95
|
+
def completion_group(self) -> typing.Optional[BackgroundTransferCompletionGroup]: ...
|
|
96
|
+
@_property
|
|
97
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
98
|
+
@cost_policy.setter
|
|
99
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
100
|
+
@_property
|
|
101
|
+
def group(self) -> str: ...
|
|
102
|
+
@group.setter
|
|
103
|
+
def group(self, value: str) -> None: ...
|
|
104
|
+
@_property
|
|
105
|
+
def method(self) -> str: ...
|
|
106
|
+
@method.setter
|
|
107
|
+
def method(self, value: str) -> None: ...
|
|
108
|
+
@_property
|
|
109
|
+
def proxy_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
|
|
110
|
+
@proxy_credential.setter
|
|
111
|
+
def proxy_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
|
|
112
|
+
@_property
|
|
113
|
+
def server_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
|
|
114
|
+
@server_credential.setter
|
|
115
|
+
def server_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
|
|
116
|
+
|
|
117
|
+
@typing.final
|
|
118
|
+
class BackgroundTransferCompletionGroup(winrt.system.Object):
|
|
119
|
+
@staticmethod
|
|
120
|
+
def _from(obj: winrt.system.Object, /) -> BackgroundTransferCompletionGroup: ...
|
|
121
|
+
def __new__(cls: typing.Type[BackgroundTransferCompletionGroup]) -> BackgroundTransferCompletionGroup: ...
|
|
122
|
+
def enable(self) -> None: ...
|
|
123
|
+
@_property
|
|
124
|
+
def is_enabled(self) -> bool: ...
|
|
125
|
+
@_property
|
|
126
|
+
def trigger(self) -> typing.Optional[windows_applicationmodel_background.IBackgroundTrigger]: ...
|
|
127
|
+
|
|
128
|
+
@typing.final
|
|
129
|
+
class BackgroundTransferCompletionGroupTriggerDetails(winrt.system.Object):
|
|
130
|
+
@staticmethod
|
|
131
|
+
def _from(obj: winrt.system.Object, /) -> BackgroundTransferCompletionGroupTriggerDetails: ...
|
|
132
|
+
@_property
|
|
133
|
+
def downloads(self) -> typing.Optional[windows_foundation_collections.IVectorView[DownloadOperation]]: ...
|
|
134
|
+
@_property
|
|
135
|
+
def uploads(self) -> typing.Optional[windows_foundation_collections.IVectorView[UploadOperation]]: ...
|
|
136
|
+
|
|
137
|
+
@typing.final
|
|
138
|
+
class BackgroundTransferContentPart(winrt.system.Object):
|
|
139
|
+
@staticmethod
|
|
140
|
+
def _from(obj: winrt.system.Object, /) -> BackgroundTransferContentPart: ...
|
|
141
|
+
@typing.overload
|
|
142
|
+
def __new__(cls: typing.Type[BackgroundTransferContentPart], name: str) -> BackgroundTransferContentPart: ...
|
|
143
|
+
@typing.overload
|
|
144
|
+
def __new__(cls: typing.Type[BackgroundTransferContentPart], name: str, file_name: str) -> BackgroundTransferContentPart: ...
|
|
145
|
+
@typing.overload
|
|
146
|
+
def __new__(cls: typing.Type[BackgroundTransferContentPart]) -> BackgroundTransferContentPart: ...
|
|
147
|
+
def set_file(self, value: typing.Optional[windows_storage.IStorageFile], /) -> None: ...
|
|
148
|
+
def set_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
149
|
+
def set_text(self, value: str, /) -> None: ...
|
|
150
|
+
|
|
151
|
+
@typing.final
|
|
152
|
+
class BackgroundTransferError_Static(type):
|
|
153
|
+
def get_status(cls, hresult: winrt.system.Int32, /) -> windows_web.WebErrorStatus: ...
|
|
154
|
+
|
|
155
|
+
@typing.final
|
|
156
|
+
class BackgroundTransferError(winrt.system.Object, metaclass=BackgroundTransferError_Static):
|
|
157
|
+
pass
|
|
158
|
+
|
|
159
|
+
@typing.final
|
|
160
|
+
class BackgroundTransferGroup_Static(type):
|
|
161
|
+
def create_group(cls, name: str, /) -> typing.Optional[BackgroundTransferGroup]: ...
|
|
162
|
+
|
|
163
|
+
@typing.final
|
|
164
|
+
class BackgroundTransferGroup(winrt.system.Object, metaclass=BackgroundTransferGroup_Static):
|
|
165
|
+
@staticmethod
|
|
166
|
+
def _from(obj: winrt.system.Object, /) -> BackgroundTransferGroup: ...
|
|
167
|
+
@_property
|
|
168
|
+
def transfer_behavior(self) -> BackgroundTransferBehavior: ...
|
|
169
|
+
@transfer_behavior.setter
|
|
170
|
+
def transfer_behavior(self, value: BackgroundTransferBehavior) -> None: ...
|
|
171
|
+
@_property
|
|
172
|
+
def name(self) -> str: ...
|
|
173
|
+
|
|
174
|
+
@typing.final
|
|
175
|
+
class BackgroundTransferRangesDownloadedEventArgs(winrt.system.Object):
|
|
176
|
+
@staticmethod
|
|
177
|
+
def _from(obj: winrt.system.Object, /) -> BackgroundTransferRangesDownloadedEventArgs: ...
|
|
178
|
+
def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
|
|
179
|
+
@_property
|
|
180
|
+
def added_ranges(self) -> typing.Optional[windows_foundation_collections.IVector[BackgroundTransferFileRange]]: ...
|
|
181
|
+
@_property
|
|
182
|
+
def was_download_restarted(self) -> bool: ...
|
|
183
|
+
|
|
184
|
+
@typing.final
|
|
185
|
+
class BackgroundUploader_Static(type):
|
|
186
|
+
@typing.overload
|
|
187
|
+
def get_current_uploads_async(cls) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[UploadOperation]]: ...
|
|
188
|
+
@typing.overload
|
|
189
|
+
def get_current_uploads_async(cls, group: str, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[UploadOperation]]: ...
|
|
190
|
+
def get_current_uploads_for_transfer_group_async(cls, group: typing.Optional[BackgroundTransferGroup], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[UploadOperation]]: ...
|
|
191
|
+
def request_unconstrained_uploads_async(cls, operations: typing.Iterable[UploadOperation], /) -> windows_foundation.IAsyncOperation[UnconstrainedTransferRequestResult]: ...
|
|
192
|
+
|
|
193
|
+
@typing.final
|
|
194
|
+
class BackgroundUploader(winrt.system.Object, metaclass=BackgroundUploader_Static):
|
|
195
|
+
@staticmethod
|
|
196
|
+
def _from(obj: winrt.system.Object, /) -> BackgroundUploader: ...
|
|
197
|
+
@typing.overload
|
|
198
|
+
def __new__(cls: typing.Type[BackgroundUploader], completion_group: typing.Optional[BackgroundTransferCompletionGroup]) -> BackgroundUploader: ...
|
|
199
|
+
@typing.overload
|
|
200
|
+
def __new__(cls: typing.Type[BackgroundUploader]) -> BackgroundUploader: ...
|
|
201
|
+
def create_upload(self, uri: typing.Optional[windows_foundation.Uri], source_file: typing.Optional[windows_storage.IStorageFile], /) -> typing.Optional[UploadOperation]: ...
|
|
202
|
+
@typing.overload
|
|
203
|
+
def create_upload_async(self, uri: typing.Optional[windows_foundation.Uri], parts: typing.Iterable[BackgroundTransferContentPart], /) -> windows_foundation.IAsyncOperation[UploadOperation]: ...
|
|
204
|
+
@typing.overload
|
|
205
|
+
def create_upload_async(self, uri: typing.Optional[windows_foundation.Uri], parts: typing.Iterable[BackgroundTransferContentPart], sub_type: str, /) -> windows_foundation.IAsyncOperation[UploadOperation]: ...
|
|
206
|
+
@typing.overload
|
|
207
|
+
def create_upload_async(self, uri: typing.Optional[windows_foundation.Uri], parts: typing.Iterable[BackgroundTransferContentPart], sub_type: str, boundary: str, /) -> windows_foundation.IAsyncOperation[UploadOperation]: ...
|
|
208
|
+
def create_upload_from_stream_async(self, uri: typing.Optional[windows_foundation.Uri], source_stream: typing.Optional[windows_storage_streams.IInputStream], /) -> windows_foundation.IAsyncOperation[UploadOperation]: ...
|
|
209
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
210
|
+
@_property
|
|
211
|
+
def server_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
|
|
212
|
+
@server_credential.setter
|
|
213
|
+
def server_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
|
|
214
|
+
@_property
|
|
215
|
+
def proxy_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
|
|
216
|
+
@proxy_credential.setter
|
|
217
|
+
def proxy_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
|
|
218
|
+
@_property
|
|
219
|
+
def method(self) -> str: ...
|
|
220
|
+
@method.setter
|
|
221
|
+
def method(self, value: str) -> None: ...
|
|
222
|
+
@_property
|
|
223
|
+
def group(self) -> str: ...
|
|
224
|
+
@group.setter
|
|
225
|
+
def group(self, value: str) -> None: ...
|
|
226
|
+
@_property
|
|
227
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
228
|
+
@cost_policy.setter
|
|
229
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
230
|
+
@_property
|
|
231
|
+
def failure_tile_notification(self) -> typing.Optional[windows_ui_notifications.TileNotification]: ...
|
|
232
|
+
@failure_tile_notification.setter
|
|
233
|
+
def failure_tile_notification(self, value: typing.Optional[windows_ui_notifications.TileNotification]) -> None: ...
|
|
234
|
+
@_property
|
|
235
|
+
def transfer_group(self) -> typing.Optional[BackgroundTransferGroup]: ...
|
|
236
|
+
@transfer_group.setter
|
|
237
|
+
def transfer_group(self, value: typing.Optional[BackgroundTransferGroup]) -> None: ...
|
|
238
|
+
@_property
|
|
239
|
+
def success_toast_notification(self) -> typing.Optional[windows_ui_notifications.ToastNotification]: ...
|
|
240
|
+
@success_toast_notification.setter
|
|
241
|
+
def success_toast_notification(self, value: typing.Optional[windows_ui_notifications.ToastNotification]) -> None: ...
|
|
242
|
+
@_property
|
|
243
|
+
def success_tile_notification(self) -> typing.Optional[windows_ui_notifications.TileNotification]: ...
|
|
244
|
+
@success_tile_notification.setter
|
|
245
|
+
def success_tile_notification(self, value: typing.Optional[windows_ui_notifications.TileNotification]) -> None: ...
|
|
246
|
+
@_property
|
|
247
|
+
def failure_toast_notification(self) -> typing.Optional[windows_ui_notifications.ToastNotification]: ...
|
|
248
|
+
@failure_toast_notification.setter
|
|
249
|
+
def failure_toast_notification(self, value: typing.Optional[windows_ui_notifications.ToastNotification]) -> None: ...
|
|
250
|
+
@_property
|
|
251
|
+
def completion_group(self) -> typing.Optional[BackgroundTransferCompletionGroup]: ...
|
|
252
|
+
|
|
253
|
+
@typing.final
|
|
254
|
+
class ContentPrefetcher_Static(type):
|
|
255
|
+
@_property
|
|
256
|
+
def indirect_content_uri(cls) -> typing.Optional[windows_foundation.Uri]: ...
|
|
257
|
+
@indirect_content_uri.setter
|
|
258
|
+
def indirect_content_uri(cls, value: typing.Optional[windows_foundation.Uri]) -> None: ...
|
|
259
|
+
@_property
|
|
260
|
+
def content_uris(cls) -> typing.Optional[windows_foundation_collections.IVector[windows_foundation.Uri]]: ...
|
|
261
|
+
@_property
|
|
262
|
+
def last_successful_prefetch_time(cls) -> typing.Optional[typing.Optional[datetime.datetime]]: ...
|
|
263
|
+
|
|
264
|
+
@typing.final
|
|
265
|
+
class ContentPrefetcher(winrt.system.Object, metaclass=ContentPrefetcher_Static):
|
|
266
|
+
pass
|
|
267
|
+
|
|
268
|
+
@typing.final
|
|
269
|
+
class DownloadOperation(winrt.system.Object):
|
|
270
|
+
@staticmethod
|
|
271
|
+
def _from(obj: winrt.system.Object, /) -> DownloadOperation: ...
|
|
272
|
+
def attach_async(self) -> windows_foundation.IAsyncOperationWithProgress[DownloadOperation, DownloadOperation]: ...
|
|
273
|
+
def get_downloaded_ranges(self) -> typing.Optional[windows_foundation_collections.IVector[BackgroundTransferFileRange]]: ...
|
|
274
|
+
def get_response_information(self) -> typing.Optional[ResponseInformation]: ...
|
|
275
|
+
def get_result_random_access_stream_reference(self) -> typing.Optional[windows_storage_streams.IRandomAccessStreamReference]: ...
|
|
276
|
+
def get_result_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[windows_storage_streams.IInputStream]: ...
|
|
277
|
+
def make_current_in_transfer_group(self) -> None: ...
|
|
278
|
+
def pause(self) -> None: ...
|
|
279
|
+
def remove_request_header(self, header_name: str, /) -> None: ...
|
|
280
|
+
def resume(self) -> None: ...
|
|
281
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
282
|
+
def start_async(self) -> windows_foundation.IAsyncOperationWithProgress[DownloadOperation, DownloadOperation]: ...
|
|
283
|
+
def add_ranges_downloaded(self, event_handler: windows_foundation.TypedEventHandler[DownloadOperation, BackgroundTransferRangesDownloadedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
284
|
+
def remove_ranges_downloaded(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
285
|
+
@_property
|
|
286
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
287
|
+
@cost_policy.setter
|
|
288
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
289
|
+
@_property
|
|
290
|
+
def requested_uri(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
291
|
+
@requested_uri.setter
|
|
292
|
+
def requested_uri(self, value: typing.Optional[windows_foundation.Uri]) -> None: ...
|
|
293
|
+
@_property
|
|
294
|
+
def method(self) -> str: ...
|
|
295
|
+
@_property
|
|
296
|
+
def group(self) -> str: ...
|
|
297
|
+
@_property
|
|
298
|
+
def guid(self) -> _uuid.UUID: ...
|
|
299
|
+
@_property
|
|
300
|
+
def priority(self) -> BackgroundTransferPriority: ...
|
|
301
|
+
@priority.setter
|
|
302
|
+
def priority(self, value: BackgroundTransferPriority) -> None: ...
|
|
303
|
+
@_property
|
|
304
|
+
def progress(self) -> BackgroundDownloadProgress: ...
|
|
305
|
+
@_property
|
|
306
|
+
def result_file(self) -> typing.Optional[windows_storage.IStorageFile]: ...
|
|
307
|
+
@_property
|
|
308
|
+
def transfer_group(self) -> typing.Optional[BackgroundTransferGroup]: ...
|
|
309
|
+
@_property
|
|
310
|
+
def is_random_access_required(self) -> bool: ...
|
|
311
|
+
@is_random_access_required.setter
|
|
312
|
+
def is_random_access_required(self, value: bool) -> None: ...
|
|
313
|
+
@_property
|
|
314
|
+
def current_web_error_status(self) -> typing.Optional[typing.Optional[windows_web.WebErrorStatus]]: ...
|
|
315
|
+
@_property
|
|
316
|
+
def recoverable_web_error_statuses(self) -> typing.Optional[windows_foundation_collections.IVector[windows_web.WebErrorStatus]]: ...
|
|
317
|
+
|
|
318
|
+
@typing.final
|
|
319
|
+
class ResponseInformation(winrt.system.Object):
|
|
320
|
+
@staticmethod
|
|
321
|
+
def _from(obj: winrt.system.Object, /) -> ResponseInformation: ...
|
|
322
|
+
@_property
|
|
323
|
+
def actual_uri(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
324
|
+
@_property
|
|
325
|
+
def headers(self) -> typing.Optional[windows_foundation_collections.IMapView[str, str]]: ...
|
|
326
|
+
@_property
|
|
327
|
+
def is_resumable(self) -> bool: ...
|
|
328
|
+
@_property
|
|
329
|
+
def status_code(self) -> winrt.system.UInt32: ...
|
|
330
|
+
|
|
331
|
+
@typing.final
|
|
332
|
+
class UnconstrainedTransferRequestResult(winrt.system.Object):
|
|
333
|
+
@staticmethod
|
|
334
|
+
def _from(obj: winrt.system.Object, /) -> UnconstrainedTransferRequestResult: ...
|
|
335
|
+
@_property
|
|
336
|
+
def is_unconstrained(self) -> bool: ...
|
|
337
|
+
|
|
338
|
+
@typing.final
|
|
339
|
+
class UploadOperation(winrt.system.Object):
|
|
340
|
+
@staticmethod
|
|
341
|
+
def _from(obj: winrt.system.Object, /) -> UploadOperation: ...
|
|
342
|
+
def attach_async(self) -> windows_foundation.IAsyncOperationWithProgress[UploadOperation, UploadOperation]: ...
|
|
343
|
+
def get_response_information(self) -> typing.Optional[ResponseInformation]: ...
|
|
344
|
+
def get_result_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[windows_storage_streams.IInputStream]: ...
|
|
345
|
+
def make_current_in_transfer_group(self) -> None: ...
|
|
346
|
+
def remove_request_header(self, header_name: str, /) -> None: ...
|
|
347
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
348
|
+
def start_async(self) -> windows_foundation.IAsyncOperationWithProgress[UploadOperation, UploadOperation]: ...
|
|
349
|
+
@_property
|
|
350
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
351
|
+
@cost_policy.setter
|
|
352
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
353
|
+
@_property
|
|
354
|
+
def group(self) -> str: ...
|
|
355
|
+
@_property
|
|
356
|
+
def guid(self) -> _uuid.UUID: ...
|
|
357
|
+
@_property
|
|
358
|
+
def method(self) -> str: ...
|
|
359
|
+
@_property
|
|
360
|
+
def requested_uri(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
361
|
+
@_property
|
|
362
|
+
def priority(self) -> BackgroundTransferPriority: ...
|
|
363
|
+
@priority.setter
|
|
364
|
+
def priority(self, value: BackgroundTransferPriority) -> None: ...
|
|
365
|
+
@_property
|
|
366
|
+
def progress(self) -> BackgroundUploadProgress: ...
|
|
367
|
+
@_property
|
|
368
|
+
def source_file(self) -> typing.Optional[windows_storage.IStorageFile]: ...
|
|
369
|
+
@_property
|
|
370
|
+
def transfer_group(self) -> typing.Optional[BackgroundTransferGroup]: ...
|
|
371
|
+
|
|
372
|
+
@typing.final
|
|
373
|
+
class IBackgroundTransferBase(winrt.system.Object):
|
|
374
|
+
@staticmethod
|
|
375
|
+
def _from(obj: winrt.system.Object, /) -> IBackgroundTransferBase: ...
|
|
376
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
377
|
+
@_property
|
|
378
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
379
|
+
@cost_policy.setter
|
|
380
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
381
|
+
@_property
|
|
382
|
+
def group(self) -> str: ...
|
|
383
|
+
@group.setter
|
|
384
|
+
def group(self, value: str) -> None: ...
|
|
385
|
+
@_property
|
|
386
|
+
def method(self) -> str: ...
|
|
387
|
+
@method.setter
|
|
388
|
+
def method(self, value: str) -> None: ...
|
|
389
|
+
@_property
|
|
390
|
+
def proxy_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
|
|
391
|
+
@proxy_credential.setter
|
|
392
|
+
def proxy_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
|
|
393
|
+
@_property
|
|
394
|
+
def server_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
|
|
395
|
+
@server_credential.setter
|
|
396
|
+
def server_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
|
|
397
|
+
|
|
398
|
+
@typing.final
|
|
399
|
+
class IBackgroundTransferContentPartFactory(winrt.system.Object):
|
|
400
|
+
@staticmethod
|
|
401
|
+
def _from(obj: winrt.system.Object, /) -> IBackgroundTransferContentPartFactory: ...
|
|
402
|
+
def create_with_name(self, name: str, /) -> typing.Optional[BackgroundTransferContentPart]: ...
|
|
403
|
+
def create_with_name_and_file_name(self, name: str, file_name: str, /) -> typing.Optional[BackgroundTransferContentPart]: ...
|
|
404
|
+
|
|
405
|
+
@typing.final
|
|
406
|
+
class IBackgroundTransferOperation(winrt.system.Object):
|
|
407
|
+
@staticmethod
|
|
408
|
+
def _from(obj: winrt.system.Object, /) -> IBackgroundTransferOperation: ...
|
|
409
|
+
def get_response_information(self) -> typing.Optional[ResponseInformation]: ...
|
|
410
|
+
def get_result_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[windows_storage_streams.IInputStream]: ...
|
|
411
|
+
@_property
|
|
412
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
413
|
+
@cost_policy.setter
|
|
414
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
415
|
+
@_property
|
|
416
|
+
def group(self) -> str: ...
|
|
417
|
+
@_property
|
|
418
|
+
def guid(self) -> _uuid.UUID: ...
|
|
419
|
+
@_property
|
|
420
|
+
def method(self) -> str: ...
|
|
421
|
+
@_property
|
|
422
|
+
def requested_uri(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
423
|
+
|
|
424
|
+
@typing.final
|
|
425
|
+
class IBackgroundTransferOperationPriority(winrt.system.Object):
|
|
426
|
+
@staticmethod
|
|
427
|
+
def _from(obj: winrt.system.Object, /) -> IBackgroundTransferOperationPriority: ...
|
|
428
|
+
@_property
|
|
429
|
+
def priority(self) -> BackgroundTransferPriority: ...
|
|
430
|
+
@priority.setter
|
|
431
|
+
def priority(self, value: BackgroundTransferPriority) -> None: ...
|
|
432
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt import _winrt_windows_networking_backgroundtransfer
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"BackgroundTransferBehavior",
|
|
10
|
+
"BackgroundTransferCostPolicy",
|
|
11
|
+
"BackgroundTransferPriority",
|
|
12
|
+
"BackgroundTransferStatus",
|
|
13
|
+
"BackgroundDownloadProgress",
|
|
14
|
+
"BackgroundTransferFileRange",
|
|
15
|
+
"BackgroundUploadProgress",
|
|
16
|
+
"BackgroundDownloader",
|
|
17
|
+
"BackgroundTransferCompletionGroup",
|
|
18
|
+
"BackgroundTransferCompletionGroupTriggerDetails",
|
|
19
|
+
"BackgroundTransferContentPart",
|
|
20
|
+
"BackgroundTransferError",
|
|
21
|
+
"BackgroundTransferGroup",
|
|
22
|
+
"BackgroundTransferRangesDownloadedEventArgs",
|
|
23
|
+
"BackgroundUploader",
|
|
24
|
+
"ContentPrefetcher",
|
|
25
|
+
"DownloadOperation",
|
|
26
|
+
"ResponseInformation",
|
|
27
|
+
"UnconstrainedTransferRequestResult",
|
|
28
|
+
"UploadOperation",
|
|
29
|
+
"IBackgroundTransferBase",
|
|
30
|
+
"IBackgroundTransferContentPartFactory",
|
|
31
|
+
"IBackgroundTransferOperation",
|
|
32
|
+
"IBackgroundTransferOperationPriority",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
class BackgroundTransferBehavior(enum.IntEnum):
|
|
36
|
+
PARALLEL = 0
|
|
37
|
+
SERIALIZED = 1
|
|
38
|
+
|
|
39
|
+
class BackgroundTransferCostPolicy(enum.IntEnum):
|
|
40
|
+
DEFAULT = 0
|
|
41
|
+
UNRESTRICTED_ONLY = 1
|
|
42
|
+
ALWAYS = 2
|
|
43
|
+
|
|
44
|
+
class BackgroundTransferPriority(enum.IntEnum):
|
|
45
|
+
DEFAULT = 0
|
|
46
|
+
HIGH = 1
|
|
47
|
+
LOW = 2
|
|
48
|
+
|
|
49
|
+
class BackgroundTransferStatus(enum.IntEnum):
|
|
50
|
+
IDLE = 0
|
|
51
|
+
RUNNING = 1
|
|
52
|
+
PAUSED_BY_APPLICATION = 2
|
|
53
|
+
PAUSED_COSTED_NETWORK = 3
|
|
54
|
+
PAUSED_NO_NETWORK = 4
|
|
55
|
+
COMPLETED = 5
|
|
56
|
+
CANCELED = 6
|
|
57
|
+
ERROR = 7
|
|
58
|
+
PAUSED_RECOVERABLE_WEB_ERROR_STATUS = 8
|
|
59
|
+
PAUSED_SYSTEM_POLICY = 32
|
|
60
|
+
|
|
61
|
+
BackgroundDownloadProgress = _winrt_windows_networking_backgroundtransfer.BackgroundDownloadProgress
|
|
62
|
+
BackgroundTransferFileRange = _winrt_windows_networking_backgroundtransfer.BackgroundTransferFileRange
|
|
63
|
+
BackgroundUploadProgress = _winrt_windows_networking_backgroundtransfer.BackgroundUploadProgress
|
|
64
|
+
BackgroundDownloader = _winrt_windows_networking_backgroundtransfer.BackgroundDownloader
|
|
65
|
+
BackgroundTransferCompletionGroup = _winrt_windows_networking_backgroundtransfer.BackgroundTransferCompletionGroup
|
|
66
|
+
BackgroundTransferCompletionGroupTriggerDetails = _winrt_windows_networking_backgroundtransfer.BackgroundTransferCompletionGroupTriggerDetails
|
|
67
|
+
BackgroundTransferContentPart = _winrt_windows_networking_backgroundtransfer.BackgroundTransferContentPart
|
|
68
|
+
BackgroundTransferError = _winrt_windows_networking_backgroundtransfer.BackgroundTransferError
|
|
69
|
+
BackgroundTransferGroup = _winrt_windows_networking_backgroundtransfer.BackgroundTransferGroup
|
|
70
|
+
BackgroundTransferRangesDownloadedEventArgs = _winrt_windows_networking_backgroundtransfer.BackgroundTransferRangesDownloadedEventArgs
|
|
71
|
+
BackgroundUploader = _winrt_windows_networking_backgroundtransfer.BackgroundUploader
|
|
72
|
+
ContentPrefetcher = _winrt_windows_networking_backgroundtransfer.ContentPrefetcher
|
|
73
|
+
DownloadOperation = _winrt_windows_networking_backgroundtransfer.DownloadOperation
|
|
74
|
+
ResponseInformation = _winrt_windows_networking_backgroundtransfer.ResponseInformation
|
|
75
|
+
UnconstrainedTransferRequestResult = _winrt_windows_networking_backgroundtransfer.UnconstrainedTransferRequestResult
|
|
76
|
+
UploadOperation = _winrt_windows_networking_backgroundtransfer.UploadOperation
|
|
77
|
+
IBackgroundTransferBase = _winrt_windows_networking_backgroundtransfer.IBackgroundTransferBase
|
|
78
|
+
IBackgroundTransferContentPartFactory = _winrt_windows_networking_backgroundtransfer.IBackgroundTransferContentPartFactory
|
|
79
|
+
IBackgroundTransferOperation = _winrt_windows_networking_backgroundtransfer.IBackgroundTransferOperation
|
|
80
|
+
IBackgroundTransferOperationPriority = _winrt_windows_networking_backgroundtransfer.IBackgroundTransferOperationPriority
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Networking.BackgroundTransfer
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime ==2.2.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Background[all] ==2.2.0 ; extra == 'all'
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
|
|
20
|
+
Requires-Dist: winrt-Windows.Security.Credentials[all] ==2.2.0 ; extra == 'all'
|
|
21
|
+
Requires-Dist: winrt-Windows.Storage[all] ==2.2.0 ; extra == 'all'
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
|
|
23
|
+
Requires-Dist: winrt-Windows.UI.Notifications[all] ==2.2.0 ; extra == 'all'
|
|
24
|
+
Requires-Dist: winrt-Windows.Web[all] ==2.2.0 ; extra == 'all'
|
|
25
|
+
|
|
26
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
27
|
+
|
|
28
|
+
# winrt-Windows.Networking.BackgroundTransfer
|
|
29
|
+
|
|
30
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Networking.BackgroundTransfer` namespace.
|
|
31
|
+
|
|
32
|
+
This package provides the `winrt.windows.networking.backgroundtransfer` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_networking_backgroundtransfer.cp313-win32.pyd,sha256=1v3p1jzyTzD0B2Ell8rhKZboal3hHVD0y_3ohuQozPM,400896
|
|
2
|
+
winrt/_winrt_windows_networking_backgroundtransfer.pyi,sha256=U_ksNLYSVLo2Sevvh8084m2NdopEnaJI8s2bPGZNmAk,23200
|
|
3
|
+
winrt/windows/networking/backgroundtransfer/__init__.py,sha256=tegMxfvir4Qwj0EoIFf8Jtyivpr2dHjE-sGBtQNUkVI,3654
|
|
4
|
+
winrt/windows/networking/backgroundtransfer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_Windows.Networking.BackgroundTransfer-2.2.0.dist-info/METADATA,sha256=iUtXxEh8nOCtUoJdgOJ3gGZc5JXnnoR2LlTws2ty0eY,1636
|
|
6
|
+
winrt_Windows.Networking.BackgroundTransfer-2.2.0.dist-info/WHEEL,sha256=rHSPOKLHVf857fDiba9Pzuf1iCvh9pcRQ5-VWQYz3ms,97
|
|
7
|
+
winrt_Windows.Networking.BackgroundTransfer-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_Windows.Networking.BackgroundTransfer-2.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|