Spaces:
Running
Running
File size: 14,004 Bytes
3bb804c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# The PEP 484 type hints stub file for the QtNfc module.
#
# Generated by SIP 6.14.0
#
# Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt6.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import collections, re, typing, enum
try:
from warnings import deprecated
except ImportError:
pass
import PyQt6.sip
from PyQt6 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
class QNdefFilter(PyQt6.sip.simplewrapper):
class Record(PyQt6.sip.simplewrapper):
maximum = ... # type: int
minimum = ... # type: int
type = ... # type: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]
typeNameFormat = ... # type: 'QNdefRecord.TypeNameFormat'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QNdefFilter.Record') -> None: ...
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QNdefFilter') -> None: ...
def match(self, message: 'QNdefMessage') -> bool: ...
def recordAt(self, i: int) -> 'QNdefFilter.Record': ...
def __len__(self) -> int: ...
def recordCount(self) -> int: ...
@typing.overload
def appendRecord(self, record: 'QNdefFilter.Record') -> bool: ...
@typing.overload
def appendRecord(self, typeNameFormat: 'QNdefRecord.TypeNameFormat', type: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview], min: int = ..., max: int = ...) -> bool: ...
def orderMatch(self) -> bool: ...
def setOrderMatch(self, on: bool) -> None: ...
def clear(self) -> None: ...
class QNdefMessage(PyQt6.sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, record: 'QNdefRecord') -> None: ...
@typing.overload
def __init__(self, message: 'QNdefMessage') -> None: ...
@typing.overload
def __init__(self, records: collections.abc.Iterable['QNdefRecord']) -> None: ...
def __ne__(self, other: object): ...
@staticmethod
def fromByteArray(message: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> 'QNdefMessage': ...
def __delitem__(self, i: int) -> None: ...
def __setitem__(self, i: int, value: 'QNdefRecord') -> None: ...
def __getitem__(self, i: int) -> 'QNdefRecord': ...
def __len__(self) -> int: ...
def toByteArray(self) -> QtCore.QByteArray: ...
def __eq__(self, other: object): ...
class QNdefRecord(PyQt6.sip.simplewrapper):
class TypeNameFormat(enum.Enum):
Empty = ... # type: QNdefRecord.TypeNameFormat
NfcRtd = ... # type: QNdefRecord.TypeNameFormat
Mime = ... # type: QNdefRecord.TypeNameFormat
Uri = ... # type: QNdefRecord.TypeNameFormat
ExternalRtd = ... # type: QNdefRecord.TypeNameFormat
Unknown = ... # type: QNdefRecord.TypeNameFormat
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QNdefRecord') -> None: ...
def __hash__(self) -> int: ...
def __ne__(self, other: object): ...
def __eq__(self, other: object): ...
def clear(self) -> None: ...
def isEmpty(self) -> bool: ...
def payload(self) -> QtCore.QByteArray: ...
def setPayload(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> None: ...
def id(self) -> QtCore.QByteArray: ...
def setId(self, id: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> None: ...
def type(self) -> QtCore.QByteArray: ...
def setType(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> None: ...
def typeNameFormat(self) -> 'QNdefRecord.TypeNameFormat': ...
def setTypeNameFormat(self, typeNameFormat: 'QNdefRecord.TypeNameFormat') -> None: ...
class QNdefNfcIconRecord(QNdefRecord):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: QNdefRecord) -> None: ...
@typing.overload
def __init__(self, a0: 'QNdefNfcIconRecord') -> None: ...
def data(self) -> QtCore.QByteArray: ...
def setData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> None: ...
class QNdefNfcSmartPosterRecord(QNdefRecord):
class Action(enum.Enum):
UnspecifiedAction = ... # type: QNdefNfcSmartPosterRecord.Action
DoAction = ... # type: QNdefNfcSmartPosterRecord.Action
SaveAction = ... # type: QNdefNfcSmartPosterRecord.Action
EditAction = ... # type: QNdefNfcSmartPosterRecord.Action
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QNdefNfcSmartPosterRecord') -> None: ...
@typing.overload
def __init__(self, other: QNdefRecord) -> None: ...
def setTypeInfo(self, type: typing.Optional[str]) -> None: ...
def typeInfo(self) -> str: ...
def setSize(self, size: int) -> None: ...
def size(self) -> int: ...
def setIcons(self, icons: collections.abc.Iterable[QNdefNfcIconRecord]) -> None: ...
@typing.overload
def removeIcon(self, icon: QNdefNfcIconRecord) -> bool: ...
@typing.overload
def removeIcon(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> bool: ...
@typing.overload
def addIcon(self, icon: QNdefNfcIconRecord) -> None: ...
@typing.overload
def addIcon(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview], data: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> None: ...
def iconRecords(self) -> list[QNdefNfcIconRecord]: ...
def iconRecord(self, index: int) -> QNdefNfcIconRecord: ...
def icon(self, mimetype: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview] = ...) -> QtCore.QByteArray: ...
def iconCount(self) -> int: ...
def setAction(self, act: 'QNdefNfcSmartPosterRecord.Action') -> None: ...
def action(self) -> 'QNdefNfcSmartPosterRecord.Action': ...
@typing.overload
def setUri(self, url: 'QNdefNfcUriRecord') -> None: ...
@typing.overload
def setUri(self, url: QtCore.QUrl) -> None: ...
def uriRecord(self) -> 'QNdefNfcUriRecord': ...
def uri(self) -> QtCore.QUrl: ...
def setTitles(self, titles: collections.abc.Iterable['QNdefNfcTextRecord']) -> None: ...
@typing.overload
def removeTitle(self, text: 'QNdefNfcTextRecord') -> bool: ...
@typing.overload
def removeTitle(self, locale: typing.Optional[str]) -> bool: ...
@typing.overload
def addTitle(self, text: 'QNdefNfcTextRecord') -> bool: ...
@typing.overload
def addTitle(self, text: typing.Optional[str], locale: typing.Optional[str], encoding: 'QNdefNfcTextRecord.Encoding') -> bool: ...
def titleRecords(self) -> list['QNdefNfcTextRecord']: ...
def titleRecord(self, index: int) -> 'QNdefNfcTextRecord': ...
def title(self, locale: typing.Optional[str] = ...) -> str: ...
def titleCount(self) -> int: ...
def hasTypeInfo(self) -> bool: ...
def hasSize(self) -> bool: ...
def hasIcon(self, mimetype: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview] = ...) -> bool: ...
def hasAction(self) -> bool: ...
def hasTitle(self, locale: typing.Optional[str] = ...) -> bool: ...
def setPayload(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> None: ...
class QNdefNfcTextRecord(QNdefRecord):
class Encoding(enum.Enum):
Utf8 = ... # type: QNdefNfcTextRecord.Encoding
Utf16 = ... # type: QNdefNfcTextRecord.Encoding
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: QNdefRecord) -> None: ...
@typing.overload
def __init__(self, a0: 'QNdefNfcTextRecord') -> None: ...
def setEncoding(self, encoding: 'QNdefNfcTextRecord.Encoding') -> None: ...
def encoding(self) -> 'QNdefNfcTextRecord.Encoding': ...
def setText(self, text: typing.Optional[str]) -> None: ...
def text(self) -> str: ...
def setLocale(self, locale: typing.Optional[str]) -> None: ...
def locale(self) -> str: ...
class QNdefNfcUriRecord(QNdefRecord):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: QNdefRecord) -> None: ...
@typing.overload
def __init__(self, a0: 'QNdefNfcUriRecord') -> None: ...
def setUri(self, uri: QtCore.QUrl) -> None: ...
def uri(self) -> QtCore.QUrl: ...
class QNearFieldManager(QtCore.QObject):
class AdapterState(enum.Enum):
Offline = ... # type: QNearFieldManager.AdapterState
TurningOn = ... # type: QNearFieldManager.AdapterState
Online = ... # type: QNearFieldManager.AdapterState
TurningOff = ... # type: QNearFieldManager.AdapterState
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def setUserInformation(self, message: typing.Optional[str]) -> None: ...
def isEnabled(self) -> bool: ...
adapterStateChanged: typing.ClassVar[QtCore.pyqtSignal]
def isSupported(self, accessMethod: 'QNearFieldTarget.AccessMethod' = ...) -> bool: ...
targetDetectionStopped: typing.ClassVar[QtCore.pyqtSignal]
targetLost: typing.ClassVar[QtCore.pyqtSignal]
targetDetected: typing.ClassVar[QtCore.pyqtSignal]
def stopTargetDetection(self, errorMessage: typing.Optional[str] = ...) -> None: ...
def startTargetDetection(self, accessMethod: 'QNearFieldTarget.AccessMethod') -> bool: ...
class QNearFieldTarget(QtCore.QObject):
class Error(enum.Enum):
NoError = ... # type: QNearFieldTarget.Error
UnknownError = ... # type: QNearFieldTarget.Error
UnsupportedError = ... # type: QNearFieldTarget.Error
TargetOutOfRangeError = ... # type: QNearFieldTarget.Error
NoResponseError = ... # type: QNearFieldTarget.Error
ChecksumMismatchError = ... # type: QNearFieldTarget.Error
InvalidParametersError = ... # type: QNearFieldTarget.Error
NdefReadError = ... # type: QNearFieldTarget.Error
NdefWriteError = ... # type: QNearFieldTarget.Error
CommandError = ... # type: QNearFieldTarget.Error
ConnectionError = ... # type: QNearFieldTarget.Error
TimeoutError = ... # type: QNearFieldTarget.Error
UnsupportedTargetError = ... # type: QNearFieldTarget.Error
class AccessMethod(enum.Flag):
UnknownAccess = ... # type: QNearFieldTarget.AccessMethod
NdefAccess = ... # type: QNearFieldTarget.AccessMethod
TagTypeSpecificAccess = ... # type: QNearFieldTarget.AccessMethod
AnyAccess = ... # type: QNearFieldTarget.AccessMethod
class Type(enum.Enum):
ProprietaryTag = ... # type: QNearFieldTarget.Type
NfcTagType1 = ... # type: QNearFieldTarget.Type
NfcTagType2 = ... # type: QNearFieldTarget.Type
NfcTagType3 = ... # type: QNearFieldTarget.Type
NfcTagType4 = ... # type: QNearFieldTarget.Type
NfcTagType4A = ... # type: QNearFieldTarget.Type
NfcTagType4B = ... # type: QNearFieldTarget.Type
MifareTag = ... # type: QNearFieldTarget.Type
class RequestId(PyQt6.sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QNearFieldTarget.RequestId') -> None: ...
def __ge__(self, other: 'QNearFieldTarget.RequestId') -> bool: ...
def __ne__(self, other: object): ...
def __eq__(self, other: object): ...
def __lt__(self, other: 'QNearFieldTarget.RequestId') -> bool: ...
def refCount(self) -> int: ...
def isValid(self) -> bool: ...
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def maxCommandLength(self) -> int: ...
def disconnect(self) -> bool: ...
error: typing.ClassVar[QtCore.pyqtSignal]
requestCompleted: typing.ClassVar[QtCore.pyqtSignal]
ndefMessageRead: typing.ClassVar[QtCore.pyqtSignal]
disconnected: typing.ClassVar[QtCore.pyqtSignal]
def requestResponse(self, id: 'QNearFieldTarget.RequestId') -> typing.Any: ...
def waitForRequestCompleted(self, id: 'QNearFieldTarget.RequestId', msecs: int = ...) -> bool: ...
def sendCommand(self, command: typing.Union[QtCore.QByteArray, bytes, bytearray, memoryview]) -> 'QNearFieldTarget.RequestId': ...
def writeNdefMessages(self, messages: collections.abc.Iterable[QNdefMessage]) -> 'QNearFieldTarget.RequestId': ...
def readNdefMessages(self) -> 'QNearFieldTarget.RequestId': ...
def hasNdefMessage(self) -> bool: ...
def accessMethods(self) -> 'QNearFieldTarget.AccessMethod': ...
def type(self) -> 'QNearFieldTarget.Type': ...
def uid(self) -> QtCore.QByteArray: ...
|