31 #include <QTextStream> 146 QVariant
pos() const;
165 Q_INVOKABLE
void reset();
166 Q_INVOKABLE
void flush();
167 Q_INVOKABLE
bool seek(QVariant
pos);
169 Q_INVOKABLE
void setLocale(const QString &locale);
171 Q_INVOKABLE QString
read(qint64 maxSize);
172 Q_INVOKABLE QString
readLine(qint64 maxSize);
177 Q_INVOKABLE
signed int readInt();
178 Q_INVOKABLE
unsigned int readUInt();
188 Q_INVOKABLE
bool writeLine(const QString& text);
190 Q_INVOKABLE
bool writeShort(
signed short data);
192 Q_INVOKABLE
bool writeInt(
signed int data);
193 Q_INVOKABLE
bool writeUInt(
unsigned int data);
194 Q_INVOKABLE
bool writeLong(
signed long data);
195 Q_INVOKABLE
bool writeULong(
unsigned long data);
243 #endif // ZTEXTSTREAM_H static void registerType()
Registers ZTextStream as a QML type.
void setRealNumberNotation(uint notation)
QString getString() const
static QVariant m_tags
QVariantMap of QTextStream enumerations for use by Javascript programs.
ZioDevice * m_zd
Pointer to contained ZioDevice object.
Q_INVOKABLE bool writeShort(signed short data)
Q_INVOKABLE QString readLine(qint64 maxSize)
Q_INVOKABLE bool writeLine(const QString &text)
Q_INVOKABLE bool writeChar(uint data)
void validateReadable() const
ZTextStream(QObject *parent=nullptr)
Q_INVOKABLE void skipWhiteSpace()
Q_INVOKABLE bool writeFloat(float data)
void setFieldWidth(int width)
bool getAutoDetectUnicode() const
int getFieldWidth() const
Q_INVOKABLE bool writeLong(signed long data)
uint getRealNumberNotation() const
void setAutoDetectUnicode(bool autoDetectOn)
Q_INVOKABLE signed long readLong()
Q_INVOKABLE bool writeUShort(unsigned short data)
Q_INVOKABLE double readDouble()
Q_INVOKABLE bool writeBytes(QObject *data)
void setNumberFlags(uint flags)
Q_INVOKABLE bool writeUInt(unsigned int data)
Q_INVOKABLE bool writeULongLong(qulonglong data)
Q_INVOKABLE qulonglong readULongLong()
QSharedPointer< QString > ZqStringPtr
void validateWritable() const
Q_INVOKABLE signed short readShort()
A javascript wrapper for QIODevice.
void getQDevice(QIODevice **device)
Q_INVOKABLE void release()
Q_INVOKABLE signed int readInt()
Q_INVOKABLE uint readChar()
Q_INVOKABLE QString readString()
void setRealNumberPrecision(int precision)
uint getFieldAlignment() const
Q_INVOKABLE bool writeDouble(double data)
Q_INVOKABLE void setLocale(const QString &locale)
Q_INVOKABLE unsigned long readULong()
Q_INVOKABLE QString read(qint64 maxSize)
Q_INVOKABLE bool seek(QVariant pos)
QVariant tags
A Javascript object containing QFile enumeration values.
Q_INVOKABLE float readFloat()
Q_INVOKABLE bool writeInt(signed int data)
uint getNumberFlags() const
QObject device
A ZioDevice object presents this object's QIODevice interface to Javascript programs.
void setIntegerBase(int base)
Q_INVOKABLE bool writeULong(unsigned long data)
int getRealNumberPrecision() const
int getIntegerBase() const
Q_INVOKABLE void resetStatus()
Q_INVOKABLE QObject * readBytes()
Q_INVOKABLE unsigned short readUShort()
Q_INVOKABLE bool writeLongLong(qlonglong data)
Q_INVOKABLE qlonglong readLongLong()
void setFieldAlignment(uint alignment)
void validateData() const
QSharedPointer< QIODevice > ZqIODevicePtr
Q_INVOKABLE bool writeString(const QString &text)
Q_INVOKABLE unsigned int readUInt()
Reads and writes UTF-8 text to an i/o stream.
QSharedPointer< QTextStream > QTextStreamPtr
Q_INVOKABLE QString readAll()