123 QObject::connect(this, SIGNAL(packetWritten()), |
123 QObject::connect(this, SIGNAL(packetWritten()), |
124 parent, SIGNAL(packetWritten())); |
124 parent, SIGNAL(packetWritten())); |
125 QObject::connect(this, SIGNAL(invalidPacket()), |
125 QObject::connect(this, SIGNAL(invalidPacket()), |
126 parent, SIGNAL(invalidPacket())); |
126 parent, SIGNAL(invalidPacket())); |
127 QObject::connect(dev, SIGNAL(readyRead()), |
127 QObject::connect(dev, SIGNAL(readyRead()), |
128 this, SLOT(readyToRead())); |
128 this, SLOT(readyToRead()), Qt::QueuedConnection); |
129 QObject::connect(dev, SIGNAL(aboutToClose()), |
129 QObject::connect(dev, SIGNAL(aboutToClose()), |
130 this, SLOT(aboutToClose())); |
130 this, SLOT(aboutToClose())); |
131 QObject::connect(dev, SIGNAL(bytesWritten(qint64)), |
131 QObject::connect(dev, SIGNAL(bytesWritten(qint64)), |
132 this, SLOT(bytesWritten(qint64))); |
132 this, SLOT(bytesWritten(qint64))); |
133 } |
133 } |
420 } |
420 } |
421 } |
421 } |
422 |
422 |
423 /*! |
423 /*! |
424 Creates a copy of \a other. The initial stream positions are shared, but the |
424 Creates a copy of \a other. The initial stream positions are shared, but the |
425 two packets are otherwise independant. |
425 two packets are otherwise independent. |
426 */ |
426 */ |
427 QPacket::QPacket(const QPacket & other) |
427 QPacket::QPacket(const QPacket & other) |
428 : QDataStream(), b(other.b), buf(0) |
428 : QDataStream(), b(other.b), buf(0) |
429 { |
429 { |
430 buf = new QBuffer(&b); |
430 buf = new QBuffer(&b); |