summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqdatastream.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-23 12:42:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-23 12:42:20 +0900
commitb35e0845dc9b3c8b9a5e52a682c769f383933fae (patch)
treee4eeca8f6fe0ca87e774be98eabf89b4c7fca347 /doc/man/man3/tqdatastream.3qt
parent1ba13366a7a377d50b9e8df9044ce11d8209f98c (diff)
downloadtqt3-b35e0845dc9b3c8b9a5e52a682c769f383933fae.tar.gz
tqt3-b35e0845dc9b3c8b9a5e52a682c769f383933fae.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqdatastream.3qt')
-rw-r--r--doc/man/man3/tqdatastream.3qt34
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/man/man3/tqdatastream.3qt b/doc/man/man3/tqdatastream.3qt
index 1c61bbf01..df2683494 100644
--- a/doc/man/man3/tqdatastream.3qt
+++ b/doc/man/man3/tqdatastream.3qt
@@ -7,7 +7,7 @@
.ad l
.nh
.SH NAME
-QDataStream \- Serialization of binary data to a QIODevice
+QDataStream \- Serialization of binary data to a TQIODevice
.SH SYNOPSIS
All the functions in this class are reentrant when TQt is built with thread support.</p>
.PP
@@ -19,7 +19,7 @@ All the functions in this class are reentrant when TQt is built with thread supp
.BI "\fBQDataStream\fR ()"
.br
.ti -1c
-.BI "\fBQDataStream\fR ( QIODevice * d )"
+.BI "\fBQDataStream\fR ( TQIODevice * d )"
.br
.ti -1c
.BI "\fBQDataStream\fR ( QByteArray a, int mode )"
@@ -28,10 +28,10 @@ All the functions in this class are reentrant when TQt is built with thread supp
.BI "virtual \fB~QDataStream\fR ()"
.br
.ti -1c
-.BI "QIODevice * \fBdevice\fR () const"
+.BI "TQIODevice * \fBdevice\fR () const"
.br
.ti -1c
-.BI "void \fBsetDevice\fR ( QIODevice * d )"
+.BI "void \fBsetDevice\fR ( TQIODevice * d )"
.br
.ti -1c
.BI "void \fBunsetDevice\fR ()"
@@ -155,7 +155,7 @@ All the functions in this class are reentrant when TQt is built with thread supp
.br
.in -1c
.SH DESCRIPTION
-The QDataStream class provides serialization of binary data to a QIODevice.
+The QDataStream class provides serialization of binary data to a TQIODevice.
.PP
A data stream is a binary stream of encoded information which is 100% independent of the host computer's operating system, CPU or byte order. For example, a data stream that is written by a PC under Windows can be read by a Sun SPARC running Solaris.
.PP
@@ -163,7 +163,7 @@ You can also use a data stream to read/write raw unencoded binary data. If you w
.PP
The QDataStream class implements the serialization of C++'s basic data types, like \fCchar\fR, \fCshort\fR, \fCint\fR, \fCchar*\fR, etc. Serialization of more complex data is accomplished by breaking up the data into primitive units.
.PP
-A data stream cooperates closely with a QIODevice. A QIODevice represents an input/output medium one can read data from and write data to. The QFile class is an example of an IO device.
+A data stream cooperates closely with a TQIODevice. A TQIODevice represents an input/output medium one can read data from and write data to. The QFile class is an example of an IO device.
.PP
Example (write binary data to a stream):
.PP
@@ -191,7 +191,7 @@ Example (read binary data from a stream):
.br
QDataStream stream( &file ); // read the data serialized from the file
.br
- QString str;
+ TQString str;
.br
TQ_INT32 a;
.br
@@ -199,7 +199,7 @@ Example (read binary data from a stream):
.br
.fi
.PP
-Each item written to the stream is written in a predefined binary format that varies depending on the item's type. Supported TQt types include QBrush, QColor, QDateTime, QFont, QPixmap, QString, QVariant and many others. For the complete list of all TQt types supporting data streaming see the Format of the QDataStream operators.
+Each item written to the stream is written in a predefined binary format that varies depending on the item's type. Supported TQt types include QBrush, TQColor, QDateTime, QFont, QPixmap, TQString, QVariant and many others. For the complete list of all TQt types supporting data streaming see the Format of the QDataStream operators.
.PP
For integers it is best to always cast to a TQt integer type for writing, and to read back into the same TQt integer type. This ensures that you get integers of the size you want and insulates you from compiler and platform differences.
.PP
@@ -307,14 +307,14 @@ The byte order used for reading/writing the data.
Constructs a data stream that has no IO device.
.PP
See also setDevice().
-.SH "QDataStream::QDataStream ( QIODevice * d )"
+.SH "QDataStream::QDataStream ( TQIODevice * d )"
Constructs a data stream that uses the IO device \fId\fR.
.PP
\fBWarning:\fR If you use QSocket or QSocketDevice as the IO device \fId\fR for reading data, you must make sure that enough data is available on the socket for the operation to successfully proceed; QDataStream does not have any means to handle or recover from short-reads.
.PP
See also setDevice() and device().
.SH "QDataStream::QDataStream ( QByteArray a, int mode )"
-Constructs a data stream that operates on a byte array, \fIa\fR, through an internal QBuffer device. The \fImode\fR is a QIODevice::mode(), usually either IO_ReadOnly or IO_WriteOnly.
+Constructs a data stream that operates on a byte array, \fIa\fR, through an internal QBuffer device. The \fImode\fR is a TQIODevice::mode(), usually either IO_ReadOnly or IO_WriteOnly.
.PP
Example:
.PP
@@ -342,12 +342,12 @@ The destructor will not affect the current IO device, unless it is an internal I
.SH "bool QDataStream::atEnd () const"
Returns TRUE if the IO device has reached the end position (end of the stream or file) or if there is no IO device set; otherwise returns FALSE, i.e. if the current position of the IO device is before the end position.
.PP
-See also QIODevice::atEnd().
+See also TQIODevice::atEnd().
.SH "int QDataStream::byteOrder () const"
Returns the current byte order setting -- either BigEndian or LittleEndian.
.PP
See also setByteOrder().
-.SH "QIODevice * QDataStream::device () const"
+.SH "TQIODevice * QDataStream::device () const"
Returns the IO device currently set.
.PP
See also setDevice() and unsetDevice().
@@ -358,7 +358,7 @@ Returns TRUE if the IO device has reached the end position (end of stream or fil
.PP
Returns FALSE if the current position of the read/write head of the IO device is somewhere before the end position.
.PP
-See also QIODevice::atEnd().
+See also TQIODevice::atEnd().
.SH "bool QDataStream::isPrintableData () const"
Returns TRUE if the printable data flag has been set; otherwise returns FALSE.
.PP
@@ -482,7 +482,7 @@ Reads \fIlen\fR bytes from the stream into \fIs\fR and returns a reference to th
.PP
The buffer \fIs\fR must be preallocated. The data is \fInot\fR encoded.
.PP
-See also readBytes(), QIODevice::readBlock(), and writeRawBytes().
+See also readBytes(), TQIODevice::readBlock(), and writeRawBytes().
.SH "void QDataStream::setByteOrder ( int bo )"
Sets the serialization byte order to \fIbo\fR.
.PP
@@ -491,8 +491,8 @@ The \fIbo\fR parameter can be QDataStream::BigEndian or QDataStream::LittleEndia
The default setting is big endian. We recommend leaving this setting unless you have special requirements.
.PP
See also byteOrder().
-.SH "void QDataStream::setDevice ( QIODevice * d )"
-void QDataStream::setDevice(QIODevice *d )
+.SH "void QDataStream::setDevice ( TQIODevice * d )"
+void QDataStream::setDevice(TQIODevice *d )
.PP
Sets the IO device to \fId\fR.
.PP
@@ -535,7 +535,7 @@ See also writeRawBytes() and readBytes().
.SH "QDataStream & QDataStream::writeRawBytes ( const char * s, uint len )"
Writes \fIlen\fR bytes from \fIs\fR to the stream and returns a reference to the stream. The data is \fInot\fR encoded.
.PP
-See also writeBytes(), QIODevice::writeBlock(), and readRawBytes().
+See also writeBytes(), TQIODevice::writeBlock(), and readRawBytes().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqdatastream.html