PythonQtWrapper_QDataStream.cpp
161 lines
| 4.4 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QDataStream.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qdatastream.h> | ||||
#include <qiodevice.h> | ||||
QDataStream* PythonQtWrapper_QDataStream::new_QDataStream() | ||||
{ | ||||
|
r24 | return new PythonQtShell_QDataStream(); } | ||
|
r13 | |||
QDataStream* PythonQtWrapper_QDataStream::new_QDataStream(QByteArray* arg__1, QIODevice::OpenMode flags) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QDataStream(arg__1, flags); } | ||
|
r13 | |||
QDataStream* PythonQtWrapper_QDataStream::new_QDataStream(QIODevice* arg__1) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QDataStream(arg__1); } | ||
|
r13 | |||
QDataStream* PythonQtWrapper_QDataStream::new_QDataStream(const QByteArray& arg__1) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QDataStream(arg__1); } | ||
|
r13 | |||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readULongLong(QDataStream* theWrappedObject, quint64& i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>i); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QDataStream::unsetDevice(QDataStream* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->unsetDevice()); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readFloat(QDataStream* theWrappedObject, float& f) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>f); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readShort(QDataStream* theWrappedObject, short& i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>i); | ||
|
r13 | } | ||
|
r73 | QIODevice* PythonQtWrapper_QDataStream::device(QDataStream* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->device()); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::writeInt(QDataStream* theWrappedObject, int i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) <<i); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readBoolean(QDataStream* theWrappedObject, bool& i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>i); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::writeShort(QDataStream* theWrappedObject, short i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) <<i); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readLongLong(QDataStream* theWrappedObject, qint64& i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>i); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QDataStream::version(QDataStream* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->version()); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readUInt(QDataStream* theWrappedObject, unsigned int& i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>i); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QDataStream::setVersion(QDataStream* theWrappedObject, int arg__1) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setVersion(arg__1)); | ||
|
r13 | } | ||
|
r73 | QDataStream::Status PythonQtWrapper_QDataStream::status(QDataStream* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->status()); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readUShort(QDataStream* theWrappedObject, unsigned short& i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>i); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QDataStream::setDevice(QDataStream* theWrappedObject, QIODevice* arg__1) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setDevice(arg__1)); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::writeLongLong(QDataStream* theWrappedObject, qint64 i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) <<i); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::writeDouble(QDataStream* theWrappedObject, double f) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) <<f); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::writeByte(QDataStream* theWrappedObject, unsigned char i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) <<i); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QDataStream::atEnd(QDataStream* theWrappedObject) const | ||
|
r28 | { | ||
|
r73 | return ( theWrappedObject->atEnd()); | ||
|
r28 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::writeBoolean(QDataStream* theWrappedObject, bool i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) <<i); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::writeFloat(QDataStream* theWrappedObject, float f) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) <<f); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readByte(QDataStream* theWrappedObject, unsigned char& i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>i); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QDataStream::skipRawData(QDataStream* theWrappedObject, int len) | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->skipRawData(len)); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readInt(QDataStream* theWrappedObject, int& i) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>i); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QDataStream::resetStatus(QDataStream* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->resetStatus()); | ||
|
r13 | } | ||
|
r73 | QDataStream* PythonQtWrapper_QDataStream::readDouble(QDataStream* theWrappedObject, double& f) | ||
|
r13 | { | ||
|
r73 | return &( (*theWrappedObject) >>f); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QDataStream::setStatus(QDataStream* theWrappedObject, QDataStream::Status status) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setStatus(status)); | ||
|
r13 | } | ||