diff options
Diffstat (limited to 'doc/networking.doc')
-rw-r--r-- | doc/networking.doc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/networking.doc b/doc/networking.doc index f99f75db1..091dfcaf7 100644 --- a/doc/networking.doc +++ b/doc/networking.doc @@ -310,7 +310,7 @@ Here we implement two supported operations. QUrlOperator is class that initiated \printuntil } \printuntil } -Implementation is very similar to previous example in addition that there are now some signal emitting requirements, so we had to use simple state machine here. In list operation we have to emit start(QNetworkOperation*) before first child, and then to emit QNetworkProtocol::newChild (const QUrlInfo&, QNetworkOperation*) for each child listed from the server. For get operation, we should emit QNetworkProtocol::data (const QByteArray&, QNetworkOperation*) for each data chunk received (in this case, one text line). It is very important that \e every operation finishes with QNetworkProtocol::finished(QNetworkOperation*) signal! +Implementation is very similar to previous example in addition that there are now some signal emitting requirements, so we had to use simple state machine here. In list operation we have to emit start(QNetworkOperation*) before first child, and then to emit QNetworkProtocol::newChild (const QUrlInfo&, QNetworkOperation*) for each child listed from the server. For get operation, we should emit QNetworkProtocol::data (const TQByteArray&, QNetworkOperation*) for each data chunk received (in this case, one text line). It is very important that \e every operation finishes with QNetworkProtocol::finished(QNetworkOperation*) signal! \skipto error \printuntil state |