# encoding: utf-8
# module PyQt6.QtSerialPort
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\PyQt6\QtSerialPort.pyd
# by generator 1.147
# no doc

# imports
import PyQt6.QtCore as __PyQt6_QtCore
import PyQt6.sip as __PyQt6_sip


# no functions
# classes

class QSerialPort(__PyQt6_QtCore.QIODevice):
    """
    QSerialPort(parent: typing.Optional[QObject] = None)
    QSerialPort(name: str, parent: typing.Optional[QObject] = None)
    QSerialPort(info: QSerialPortInfo, parent: typing.Optional[QObject] = None)
    """
    def baudRate(self, dir=None): # real signature unknown; restored from __doc__
        """ baudRate(self, dir: QSerialPort.Direction = QSerialPort.AllDirections) -> int """
        return 0

    def baudRateChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def breakEnabledChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def bytesAvailable(self): # real signature unknown; restored from __doc__
        """ bytesAvailable(self) -> int """
        return 0

    def bytesToWrite(self): # real signature unknown; restored from __doc__
        """ bytesToWrite(self) -> int """
        return 0

    def canReadLine(self): # real signature unknown; restored from __doc__
        """ canReadLine(self) -> bool """
        return False

    def childEvent(self, *args, **kwargs): # real signature unknown
        pass

    def clear(self, dir=None): # real signature unknown; restored from __doc__
        """ clear(self, dir: QSerialPort.Direction = QSerialPort.AllDirections) -> bool """
        return False

    def clearError(self): # real signature unknown; restored from __doc__
        """ clearError(self) """
        pass

    def close(self): # real signature unknown; restored from __doc__
        """ close(self) """
        pass

    def connectNotify(self, *args, **kwargs): # real signature unknown
        pass

    def customEvent(self, *args, **kwargs): # real signature unknown
        pass

    def dataBits(self): # real signature unknown; restored from __doc__
        """ dataBits(self) -> QSerialPort.DataBits """
        pass

    def dataBitsChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def dataTerminalReadyChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def disconnectNotify(self, *args, **kwargs): # real signature unknown
        pass

    def error(self): # real signature unknown; restored from __doc__
        """ error(self) -> QSerialPort.SerialPortError """
        pass

    def errorOccurred(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def flowControl(self): # real signature unknown; restored from __doc__
        """ flowControl(self) -> QSerialPort.FlowControl """
        pass

    def flowControlChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def flush(self): # real signature unknown; restored from __doc__
        """ flush(self) -> bool """
        return False

    def handle(self): # real signature unknown; restored from __doc__
        """ handle(self) -> PyQt6.sip.voidptr """
        pass

    def isBreakEnabled(self): # real signature unknown; restored from __doc__
        """ isBreakEnabled(self) -> bool """
        return False

    def isDataTerminalReady(self): # real signature unknown; restored from __doc__
        """ isDataTerminalReady(self) -> bool """
        return False

    def isRequestToSend(self): # real signature unknown; restored from __doc__
        """ isRequestToSend(self) -> bool """
        return False

    def isSequential(self): # real signature unknown; restored from __doc__
        """ isSequential(self) -> bool """
        return False

    def isSignalConnected(self, *args, **kwargs): # real signature unknown
        pass

    def open(self, mode): # real signature unknown; restored from __doc__
        """ open(self, mode: QIODeviceBase.OpenModeFlag) -> bool """
        return False

    def parity(self): # real signature unknown; restored from __doc__
        """ parity(self) -> QSerialPort.Parity """
        pass

    def parityChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def pinoutSignals(self): # real signature unknown; restored from __doc__
        """ pinoutSignals(self) -> QSerialPort.PinoutSignal """
        pass

    def portName(self): # real signature unknown; restored from __doc__
        """ portName(self) -> str """
        return ""

    def readBufferSize(self): # real signature unknown; restored from __doc__
        """ readBufferSize(self) -> int """
        return 0

    def readData(self, maxlen): # real signature unknown; restored from __doc__
        """ readData(self, maxlen: int) -> bytes """
        return b""

    def readLineData(self, maxlen): # real signature unknown; restored from __doc__
        """ readLineData(self, maxlen: int) -> bytes """
        return b""

    def receivers(self, *args, **kwargs): # real signature unknown
        pass

    def requestToSendChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def sender(self, *args, **kwargs): # real signature unknown
        pass

    def senderSignalIndex(self, *args, **kwargs): # real signature unknown
        pass

    def setBaudRate(self, baudRate, dir=None): # real signature unknown; restored from __doc__
        """ setBaudRate(self, baudRate: int, dir: QSerialPort.Direction = QSerialPort.AllDirections) -> bool """
        return False

    def setBreakEnabled(self, enabled=True): # real signature unknown; restored from __doc__
        """ setBreakEnabled(self, enabled: bool = True) -> bool """
        return False

    def setDataBits(self, dataBits): # real signature unknown; restored from __doc__
        """ setDataBits(self, dataBits: QSerialPort.DataBits) -> bool """
        return False

    def setDataTerminalReady(self, set): # real signature unknown; restored from __doc__
        """ setDataTerminalReady(self, set: bool) -> bool """
        return False

    def setErrorString(self, *args, **kwargs): # real signature unknown
        pass

    def setFlowControl(self, flow): # real signature unknown; restored from __doc__
        """ setFlowControl(self, flow: QSerialPort.FlowControl) -> bool """
        return False

    def setOpenMode(self, *args, **kwargs): # real signature unknown
        pass

    def setParity(self, parity): # real signature unknown; restored from __doc__
        """ setParity(self, parity: QSerialPort.Parity) -> bool """
        return False

    def setPort(self, info): # real signature unknown; restored from __doc__
        """ setPort(self, info: QSerialPortInfo) """
        pass

    def setPortName(self, name): # real signature unknown; restored from __doc__
        """ setPortName(self, name: str) """
        pass

    def setReadBufferSize(self, size): # real signature unknown; restored from __doc__
        """ setReadBufferSize(self, size: int) """
        pass

    def setRequestToSend(self, set): # real signature unknown; restored from __doc__
        """ setRequestToSend(self, set: bool) -> bool """
        return False

    def setStopBits(self, stopBits): # real signature unknown; restored from __doc__
        """ setStopBits(self, stopBits: QSerialPort.StopBits) -> bool """
        return False

    def skipData(self, *args, **kwargs): # real signature unknown
        pass

    def stopBits(self): # real signature unknown; restored from __doc__
        """ stopBits(self) -> QSerialPort.StopBits """
        pass

    def stopBitsChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def timerEvent(self, *args, **kwargs): # real signature unknown
        pass

    def waitForBytesWritten(self, msecs=30000): # real signature unknown; restored from __doc__
        """ waitForBytesWritten(self, msecs: int = 30000) -> bool """
        return False

    def waitForReadyRead(self, msecs=30000): # real signature unknown; restored from __doc__
        """ waitForReadyRead(self, msecs: int = 30000) -> bool """
        return False

    def writeData(self, data, bytes=None): # real signature unknown; restored from __doc__
        """ writeData(self, data: PyQt6.sip.array[bytes]) -> int """
        return 0

    def __init__(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        pass

    BaudRate = None # (!) real value is "<enum 'BaudRate'>"
    DataBits = None # (!) real value is "<enum 'DataBits'>"
    Direction = None # (!) real value is "<flag 'Direction'>"
    FlowControl = None # (!) real value is "<enum 'FlowControl'>"
    Parity = None # (!) real value is "<enum 'Parity'>"
    PinoutSignal = None # (!) real value is "<flag 'PinoutSignal'>"
    SerialPortError = None # (!) real value is "<enum 'SerialPortError'>"
    StopBits = None # (!) real value is "<enum 'StopBits'>"


class QSerialPortInfo(__PyQt6_sip.simplewrapper):
    """
    QSerialPortInfo()
    QSerialPortInfo(port: QSerialPort)
    QSerialPortInfo(name: str)
    QSerialPortInfo(other: QSerialPortInfo)
    """
    def availablePorts(self): # real signature unknown; restored from __doc__
        """ availablePorts() -> List[QSerialPortInfo] """
        return []

    def description(self): # real signature unknown; restored from __doc__
        """ description(self) -> str """
        return ""

    def hasProductIdentifier(self): # real signature unknown; restored from __doc__
        """ hasProductIdentifier(self) -> bool """
        return False

    def hasVendorIdentifier(self): # real signature unknown; restored from __doc__
        """ hasVendorIdentifier(self) -> bool """
        return False

    def isNull(self): # real signature unknown; restored from __doc__
        """ isNull(self) -> bool """
        return False

    def manufacturer(self): # real signature unknown; restored from __doc__
        """ manufacturer(self) -> str """
        return ""

    def portName(self): # real signature unknown; restored from __doc__
        """ portName(self) -> str """
        return ""

    def productIdentifier(self): # real signature unknown; restored from __doc__
        """ productIdentifier(self) -> int """
        return 0

    def serialNumber(self): # real signature unknown; restored from __doc__
        """ serialNumber(self) -> str """
        return ""

    def standardBaudRates(self): # real signature unknown; restored from __doc__
        """ standardBaudRates() -> List[int] """
        return []

    def swap(self, other): # real signature unknown; restored from __doc__
        """ swap(self, other: QSerialPortInfo) """
        pass

    def systemLocation(self): # real signature unknown; restored from __doc__
        """ systemLocation(self) -> str """
        return ""

    def vendorIdentifier(self): # real signature unknown; restored from __doc__
        """ vendorIdentifier(self) -> int """
        return 0

    def __init__(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        pass

    __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """list of weak references to the object (if defined)"""



# variables with complex values

__loader__ = None # (!) real value is '<_frozen_importlib_external.ExtensionFileLoader object at 0x000001EE35D1C350>'

__spec__ = None # (!) real value is "ModuleSpec(name='PyQt6.QtSerialPort', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000001EE35D1C350>, origin='C:\\\\Users\\\\xukai\\\\Downloads\\\\??2\\\\venv\\\\Lib\\\\site-packages\\\\PyQt6\\\\QtSerialPort.pyd')"

