File indexing completed on 2024-05-12 16:09:07

0001 class pyqtSignal():
0002  def connect(self, targetSignal): pass
0003  def emit(self, *args): pass
0004 from QtCore import *
0005 
0006 from QtWidgets import *
0007 
0008 import datetime
0009 
0010 class QSerialPort(QIODevice):
0011     """"""
0012     # Enum QSerialPort.SerialPortError
0013     NoError = 0
0014     DeviceNotFoundError = 0
0015     PermissionError = 0
0016     OpenError = 0
0017     ParityError = 0
0018     FramingError = 0
0019     BreakConditionError = 0
0020     WriteError = 0
0021     ReadError = 0
0022     ResourceError = 0
0023     UnsupportedOperationError = 0
0024     TimeoutError = 0
0025     NotOpenError = 0
0026     UnknownError = 0
0027 
0028     # Enum QSerialPort.DataErrorPolicy
0029     SkipPolicy = 0
0030     PassZeroPolicy = 0
0031     IgnorePolicy = 0
0032     StopReceivingPolicy = 0
0033     UnknownPolicy = 0
0034 
0035     # Enum QSerialPort.PinoutSignal
0036     NoSignal = 0
0037     TransmittedDataSignal = 0
0038     ReceivedDataSignal = 0
0039     DataTerminalReadySignal = 0
0040     DataCarrierDetectSignal = 0
0041     DataSetReadySignal = 0
0042     RingIndicatorSignal = 0
0043     RequestToSendSignal = 0
0044     ClearToSendSignal = 0
0045     SecondaryTransmittedDataSignal = 0
0046     SecondaryReceivedDataSignal = 0
0047 
0048     # Enum QSerialPort.FlowControl
0049     NoFlowControl = 0
0050     HardwareControl = 0
0051     SoftwareControl = 0
0052     UnknownFlowControl = 0
0053 
0054     # Enum QSerialPort.StopBits
0055     OneStop = 0
0056     OneAndHalfStop = 0
0057     TwoStop = 0
0058     UnknownStopBits = 0
0059 
0060     # Enum QSerialPort.Parity
0061     NoParity = 0
0062     EvenParity = 0
0063     OddParity = 0
0064     SpaceParity = 0
0065     MarkParity = 0
0066     UnknownParity = 0
0067 
0068     # Enum QSerialPort.DataBits
0069     Data5 = 0
0070     Data6 = 0
0071     Data7 = 0
0072     Data8 = 0
0073     UnknownDataBits = 0
0074 
0075     # Enum QSerialPort.BaudRate
0076     Baud1200 = 0
0077     Baud2400 = 0
0078     Baud4800 = 0
0079     Baud9600 = 0
0080     Baud19200 = 0
0081     Baud38400 = 0
0082     Baud57600 = 0
0083     Baud115200 = 0
0084     UnknownBaud = 0
0085 
0086     # Enum QSerialPort.Direction
0087     Input = 0
0088     Output = 0
0089     AllDirections = 0
0090 
0091     def __init__(self, parent = None):
0092         '''void QSerialPort.__init__(QObject parent = None)'''
0093     def __init__(self, name, parent = None):
0094         '''void QSerialPort.__init__(str name, QObject parent = None)'''
0095     def __init__(self, info, parent = None):
0096         '''void QSerialPort.__init__(QSerialPortInfo info, QObject parent = None)'''
0097     breakEnabledChanged = pyqtSignal() # void breakEnabledChanged(bool) - signal
0098     def isBreakEnabled(self):
0099         '''bool QSerialPort.isBreakEnabled()'''
0100         return bool()
0101     def handle(self):
0102         '''int QSerialPort.handle()'''
0103         return int()
0104     def writeData(self, data):
0105         '''int QSerialPort.writeData(str data)'''
0106         return int()
0107     def readLineData(self, maxlen):
0108         '''str QSerialPort.readLineData(int maxlen)'''
0109         return str()
0110     def readData(self, maxlen):
0111         '''str QSerialPort.readData(int maxlen)'''
0112         return str()
0113     settingsRestoredOnCloseChanged = pyqtSignal() # void settingsRestoredOnCloseChanged(bool) - signal
0114     requestToSendChanged = pyqtSignal() # void requestToSendChanged(bool) - signal
0115     dataTerminalReadyChanged = pyqtSignal() # void dataTerminalReadyChanged(bool) - signal
0116     dataErrorPolicyChanged = pyqtSignal() # void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy) - signal
0117     flowControlChanged = pyqtSignal() # void flowControlChanged(QSerialPort::FlowControl) - signal
0118     stopBitsChanged = pyqtSignal() # void stopBitsChanged(QSerialPort::StopBits) - signal
0119     parityChanged = pyqtSignal() # void parityChanged(QSerialPort::Parity) - signal
0120     dataBitsChanged = pyqtSignal() # void dataBitsChanged(QSerialPort::DataBits) - signal
0121     baudRateChanged = pyqtSignal() # void baudRateChanged(qint32,QSerialPort::Directions) - signal
0122     def setBreakEnabled(self, enabled = True):
0123         '''bool QSerialPort.setBreakEnabled(bool enabled = True)'''
0124         return bool()
0125     def sendBreak(self, duration = 0):
0126         '''bool QSerialPort.sendBreak(int duration = 0)'''
0127         return bool()
0128     def waitForBytesWritten(self, msecs):
0129         '''bool QSerialPort.waitForBytesWritten(int msecs)'''
0130         return bool()
0131     def waitForReadyRead(self, msecs):
0132         '''bool QSerialPort.waitForReadyRead(int msecs)'''
0133         return bool()
0134     def canReadLine(self):
0135         '''bool QSerialPort.canReadLine()'''
0136         return bool()
0137     def bytesToWrite(self):
0138         '''int QSerialPort.bytesToWrite()'''
0139         return int()
0140     def bytesAvailable(self):
0141         '''int QSerialPort.bytesAvailable()'''
0142         return int()
0143     def isSequential(self):
0144         '''bool QSerialPort.isSequential()'''
0145         return bool()
0146     def setReadBufferSize(self, size):
0147         '''void QSerialPort.setReadBufferSize(int size)'''
0148     def readBufferSize(self):
0149         '''int QSerialPort.readBufferSize()'''
0150         return int()
0151     def clearError(self):
0152         '''void QSerialPort.clearError()'''
0153     def error(self):
0154         '''QSerialPort.SerialPortError QSerialPort.error()'''
0155         return QSerialPort.SerialPortError()
0156     error = pyqtSignal() # void error(QSerialPort::SerialPortError) - signal
0157     def dataErrorPolicy(self):
0158         '''QSerialPort.DataErrorPolicy QSerialPort.dataErrorPolicy()'''
0159         return QSerialPort.DataErrorPolicy()
0160     def setDataErrorPolicy(self, policy = None):
0161         '''bool QSerialPort.setDataErrorPolicy(QSerialPort.DataErrorPolicy policy = QSerialPort.IgnorePolicy)'''
0162         return bool()
0163     def atEnd(self):
0164         '''bool QSerialPort.atEnd()'''
0165         return bool()
0166     def clear(self, dir = None):
0167         '''bool QSerialPort.clear(QSerialPort.Directions dir = QSerialPort.AllDirections)'''
0168         return bool()
0169     def flush(self):
0170         '''bool QSerialPort.flush()'''
0171         return bool()
0172     def pinoutSignals(self):
0173         '''QSerialPort.PinoutSignals QSerialPort.pinoutSignals()'''
0174         return QSerialPort.PinoutSignals()
0175     def isRequestToSend(self):
0176         '''bool QSerialPort.isRequestToSend()'''
0177         return bool()
0178     def setRequestToSend(self, set):
0179         '''bool QSerialPort.setRequestToSend(bool set)'''
0180         return bool()
0181     def isDataTerminalReady(self):
0182         '''bool QSerialPort.isDataTerminalReady()'''
0183         return bool()
0184     def setDataTerminalReady(self, set):
0185         '''bool QSerialPort.setDataTerminalReady(bool set)'''
0186         return bool()
0187     def flowControl(self):
0188         '''QSerialPort.FlowControl QSerialPort.flowControl()'''
0189         return QSerialPort.FlowControl()
0190     def setFlowControl(self, flow):
0191         '''bool QSerialPort.setFlowControl(QSerialPort.FlowControl flow)'''
0192         return bool()
0193     def stopBits(self):
0194         '''QSerialPort.StopBits QSerialPort.stopBits()'''
0195         return QSerialPort.StopBits()
0196     def setStopBits(self, stopBits):
0197         '''bool QSerialPort.setStopBits(QSerialPort.StopBits stopBits)'''
0198         return bool()
0199     def parity(self):
0200         '''QSerialPort.Parity QSerialPort.parity()'''
0201         return QSerialPort.Parity()
0202     def setParity(self, parity):
0203         '''bool QSerialPort.setParity(QSerialPort.Parity parity)'''
0204         return bool()
0205     def dataBits(self):
0206         '''QSerialPort.DataBits QSerialPort.dataBits()'''
0207         return QSerialPort.DataBits()
0208     def setDataBits(self, dataBits):
0209         '''bool QSerialPort.setDataBits(QSerialPort.DataBits dataBits)'''
0210         return bool()
0211     def baudRate(self, dir = None):
0212         '''int QSerialPort.baudRate(QSerialPort.Directions dir = QSerialPort.AllDirections)'''
0213         return int()
0214     def setBaudRate(self, baudRate, dir = None):
0215         '''bool QSerialPort.setBaudRate(int baudRate, QSerialPort.Directions dir = QSerialPort.AllDirections)'''
0216         return bool()
0217     def settingsRestoredOnClose(self):
0218         '''bool QSerialPort.settingsRestoredOnClose()'''
0219         return bool()
0220     def setSettingsRestoredOnClose(self, restore):
0221         '''void QSerialPort.setSettingsRestoredOnClose(bool restore)'''
0222     def close(self):
0223         '''void QSerialPort.close()'''
0224     def open(self, mode):
0225         '''bool QSerialPort.open(QIODevice.OpenMode mode)'''
0226         return bool()
0227     def setPort(self, info):
0228         '''void QSerialPort.setPort(QSerialPortInfo info)'''
0229     def portName(self):
0230         '''str QSerialPort.portName()'''
0231         return str()
0232     def setPortName(self, name):
0233         '''void QSerialPort.setPortName(str name)'''
0234     class PinoutSignals():
0235         """"""
0236         def __init__(self):
0237             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__init__()'''
0238             return QSerialPort.PinoutSignals()
0239         def __init__(self):
0240             '''int QSerialPort.PinoutSignals.__init__()'''
0241             return int()
0242         def __init__(self):
0243             '''void QSerialPort.PinoutSignals.__init__()'''
0244         def __bool__(self):
0245             '''int QSerialPort.PinoutSignals.__bool__()'''
0246             return int()
0247         def __ne__(self, f):
0248             '''bool QSerialPort.PinoutSignals.__ne__(QSerialPort.PinoutSignals f)'''
0249             return bool()
0250         def __eq__(self, f):
0251             '''bool QSerialPort.PinoutSignals.__eq__(QSerialPort.PinoutSignals f)'''
0252             return bool()
0253         def __invert__(self):
0254             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__invert__()'''
0255             return QSerialPort.PinoutSignals()
0256         def __and__(self, mask):
0257             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__and__(int mask)'''
0258             return QSerialPort.PinoutSignals()
0259         def __xor__(self, f):
0260             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__xor__(QSerialPort.PinoutSignals f)'''
0261             return QSerialPort.PinoutSignals()
0262         def __xor__(self, f):
0263             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__xor__(int f)'''
0264             return QSerialPort.PinoutSignals()
0265         def __or__(self, f):
0266             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__or__(QSerialPort.PinoutSignals f)'''
0267             return QSerialPort.PinoutSignals()
0268         def __or__(self, f):
0269             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__or__(int f)'''
0270             return QSerialPort.PinoutSignals()
0271         def __int__(self):
0272             '''int QSerialPort.PinoutSignals.__int__()'''
0273             return int()
0274         def __ixor__(self, f):
0275             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__ixor__(QSerialPort.PinoutSignals f)'''
0276             return QSerialPort.PinoutSignals()
0277         def __ior__(self, f):
0278             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__ior__(QSerialPort.PinoutSignals f)'''
0279             return QSerialPort.PinoutSignals()
0280         def __iand__(self, mask):
0281             '''QSerialPort.PinoutSignals QSerialPort.PinoutSignals.__iand__(int mask)'''
0282             return QSerialPort.PinoutSignals()
0283     class Directions():
0284         """"""
0285         def __init__(self):
0286             '''QSerialPort.Directions QSerialPort.Directions.__init__()'''
0287             return QSerialPort.Directions()
0288         def __init__(self):
0289             '''int QSerialPort.Directions.__init__()'''
0290             return int()
0291         def __init__(self):
0292             '''void QSerialPort.Directions.__init__()'''
0293         def __bool__(self):
0294             '''int QSerialPort.Directions.__bool__()'''
0295             return int()
0296         def __ne__(self, f):
0297             '''bool QSerialPort.Directions.__ne__(QSerialPort.Directions f)'''
0298             return bool()
0299         def __eq__(self, f):
0300             '''bool QSerialPort.Directions.__eq__(QSerialPort.Directions f)'''
0301             return bool()
0302         def __invert__(self):
0303             '''QSerialPort.Directions QSerialPort.Directions.__invert__()'''
0304             return QSerialPort.Directions()
0305         def __and__(self, mask):
0306             '''QSerialPort.Directions QSerialPort.Directions.__and__(int mask)'''
0307             return QSerialPort.Directions()
0308         def __xor__(self, f):
0309             '''QSerialPort.Directions QSerialPort.Directions.__xor__(QSerialPort.Directions f)'''
0310             return QSerialPort.Directions()
0311         def __xor__(self, f):
0312             '''QSerialPort.Directions QSerialPort.Directions.__xor__(int f)'''
0313             return QSerialPort.Directions()
0314         def __or__(self, f):
0315             '''QSerialPort.Directions QSerialPort.Directions.__or__(QSerialPort.Directions f)'''
0316             return QSerialPort.Directions()
0317         def __or__(self, f):
0318             '''QSerialPort.Directions QSerialPort.Directions.__or__(int f)'''
0319             return QSerialPort.Directions()
0320         def __int__(self):
0321             '''int QSerialPort.Directions.__int__()'''
0322             return int()
0323         def __ixor__(self, f):
0324             '''QSerialPort.Directions QSerialPort.Directions.__ixor__(QSerialPort.Directions f)'''
0325             return QSerialPort.Directions()
0326         def __ior__(self, f):
0327             '''QSerialPort.Directions QSerialPort.Directions.__ior__(QSerialPort.Directions f)'''
0328             return QSerialPort.Directions()
0329         def __iand__(self, mask):
0330             '''QSerialPort.Directions QSerialPort.Directions.__iand__(int mask)'''
0331             return QSerialPort.Directions()
0332 
0333 
0334 class QSerialPortInfo():
0335     """"""
0336     def __init__(self):
0337         '''void QSerialPortInfo.__init__()'''
0338     def __init__(self, port):
0339         '''void QSerialPortInfo.__init__(QSerialPort port)'''
0340     def __init__(self, name):
0341         '''void QSerialPortInfo.__init__(str name)'''
0342     def __init__(self, other):
0343         '''void QSerialPortInfo.__init__(QSerialPortInfo other)'''
0344     def serialNumber(self):
0345         '''str QSerialPortInfo.serialNumber()'''
0346         return str()
0347     def isNull(self):
0348         '''bool QSerialPortInfo.isNull()'''
0349         return bool()
0350     def availablePorts(self):
0351         '''static list-of-QSerialPortInfo QSerialPortInfo.availablePorts()'''
0352         return [QSerialPortInfo()]
0353     def standardBaudRates(self):
0354         '''static list-of-int QSerialPortInfo.standardBaudRates()'''
0355         return [int()]
0356     def isValid(self):
0357         '''bool QSerialPortInfo.isValid()'''
0358         return bool()
0359     def isBusy(self):
0360         '''bool QSerialPortInfo.isBusy()'''
0361         return bool()
0362     def hasProductIdentifier(self):
0363         '''bool QSerialPortInfo.hasProductIdentifier()'''
0364         return bool()
0365     def hasVendorIdentifier(self):
0366         '''bool QSerialPortInfo.hasVendorIdentifier()'''
0367         return bool()
0368     def productIdentifier(self):
0369         '''int QSerialPortInfo.productIdentifier()'''
0370         return int()
0371     def vendorIdentifier(self):
0372         '''int QSerialPortInfo.vendorIdentifier()'''
0373         return int()
0374     def manufacturer(self):
0375         '''str QSerialPortInfo.manufacturer()'''
0376         return str()
0377     def description(self):
0378         '''str QSerialPortInfo.description()'''
0379         return str()
0380     def systemLocation(self):
0381         '''str QSerialPortInfo.systemLocation()'''
0382         return str()
0383     def portName(self):
0384         '''str QSerialPortInfo.portName()'''
0385         return str()
0386     def swap(self, other):
0387         '''void QSerialPortInfo.swap(QSerialPortInfo other)'''
0388 
0389