##// END OF EJS Templates
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes...
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@70 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r34:5daedfb035c8
Show More
PythonQtWrapper_QDataStream.h
69 lines | 3.4 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QDATASTREAM_H
#define PYTHONQTWRAPPER_QDATASTREAM_H
#include <qdatastream.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbytearray.h>
#include <qdatastream.h>
#include <qiodevice.h>
class PythonQtShell_QDataStream : public QDataStream
{
public:
PythonQtShell_QDataStream():QDataStream(),_wrapper(NULL) {};
PythonQtShell_QDataStream(QByteArray* arg__1, QIODevice::OpenMode flags):QDataStream(arg__1, flags),_wrapper(NULL) {};
PythonQtShell_QDataStream(QIODevice* arg__1):QDataStream(arg__1),_wrapper(NULL) {};
PythonQtShell_QDataStream(const QByteArray& arg__1):QDataStream(arg__1),_wrapper(NULL) {};
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QDataStream : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Version Status )
enum Version{
Qt_1_0 = QDataStream::Qt_1_0, Qt_2_0 = QDataStream::Qt_2_0, Qt_2_1 = QDataStream::Qt_2_1, Qt_3_0 = QDataStream::Qt_3_0, Qt_3_1 = QDataStream::Qt_3_1, Qt_3_3 = QDataStream::Qt_3_3, Qt_4_0 = QDataStream::Qt_4_0, Qt_4_1 = QDataStream::Qt_4_1, Qt_4_2 = QDataStream::Qt_4_2, Qt_4_3 = QDataStream::Qt_4_3, Qt_4_4 = QDataStream::Qt_4_4};
enum Status{
Ok = QDataStream::Ok, ReadPastEnd = QDataStream::ReadPastEnd, ReadCorruptData = QDataStream::ReadCorruptData};
public slots:
QDataStream* new_QDataStream();
QDataStream* new_QDataStream(QByteArray* arg__1, QIODevice::OpenMode flags);
QDataStream* new_QDataStream(QIODevice* arg__1);
QDataStream* new_QDataStream(const QByteArray& arg__1);
void delete_QDataStream(QDataStream* obj) { delete obj; }
QDataStream& readByte(QDataStream* theWrappedObject, unsigned char& i);
QDataStream::Status status(QDataStream* theWrappedObject) const;
QIODevice* device(QDataStream* theWrappedObject) const;
void setVersion(QDataStream* theWrappedObject, int arg__1);
QDataStream& readLongLong(QDataStream* theWrappedObject, qint64& i);
QDataStream& readShort(QDataStream* theWrappedObject, short& i);
void unsetDevice(QDataStream* theWrappedObject);
QDataStream& writeLongLong(QDataStream* theWrappedObject, qint64 i);
QDataStream& readDouble(QDataStream* theWrappedObject, double& f);
QDataStream& writeDouble(QDataStream* theWrappedObject, double f);
QDataStream& writeByte(QDataStream* theWrappedObject, unsigned char i);
QDataStream& readFloat(QDataStream* theWrappedObject, float& f);
QDataStream& readUShort(QDataStream* theWrappedObject, unsigned short& i);
int skipRawData(QDataStream* theWrappedObject, int len);
int version(QDataStream* theWrappedObject) const;
QDataStream& readULongLong(QDataStream* theWrappedObject, quint64& i);
void resetStatus(QDataStream* theWrappedObject);
QDataStream& writeBoolean(QDataStream* theWrappedObject, bool i);
QDataStream& writeShort(QDataStream* theWrappedObject, short i);
void setStatus(QDataStream* theWrappedObject, QDataStream::Status status);
QDataStream& writeInt(QDataStream* theWrappedObject, int i);
QDataStream& readBoolean(QDataStream* theWrappedObject, bool& i);
QDataStream& readInt(QDataStream* theWrappedObject, int& i);
QDataStream& readUInt(QDataStream* theWrappedObject, unsigned int& i);
void setDevice(QDataStream* theWrappedObject, QIODevice* arg__1);
bool atEnd(QDataStream* theWrappedObject) const;
QDataStream& writeFloat(QDataStream* theWrappedObject, float f);
};
#endif // PYTHONQTWRAPPER_QDATASTREAM_H