diff options
author | Martin Smith <msmith@trolltech.com> | 2009-07-24 11:49:30 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-07-24 11:50:30 (GMT) |
commit | 11fb6f876b94869921fa9b560ce8a3f6ae38e1f5 (patch) | |
tree | 5da4ccb854fe5528b8ad0d32b2b57e71b247ab14 /src/corelib/xml | |
parent | ed2a03b3bc85be056eca87928d18a746faa07bca (diff) | |
download | Qt-11fb6f876b94869921fa9b560ce8a3f6ae38e1f5.zip Qt-11fb6f876b94869921fa9b560ce8a3f6ae38e1f5.tar.gz Qt-11fb6f876b94869921fa9b560ce8a3f6ae38e1f5.tar.bz2 |
qdoc: Fixed all references to obsolete QHttp classes.
Diffstat (limited to 'src/corelib/xml')
-rw-r--r-- | src/corelib/xml/qxmlstream.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/corelib/xml/qxmlstream.cpp b/src/corelib/xml/qxmlstream.cpp index 42ed04e..3e8f73e 100644 --- a/src/corelib/xml/qxmlstream.cpp +++ b/src/corelib/xml/qxmlstream.cpp @@ -334,12 +334,17 @@ QXmlStreamEntityResolver *QXmlStreamReader::entityResolver() const from the PrematureEndOfDocumentError error and continues parsing the new data with the next call to readNext(). - For example, if you read data from the network using QHttp, you - would connect its \l{QHttp::readyRead()}{readyRead()} signal to a - custom slot. In this slot, you read all available data with - \l{QHttp::readAll()}{readAll()} and pass it to the XML stream reader - using addData(). Then you call your custom parsing function that - reads the XML events from the reader. + For example, if your application reads data from the network using a + \l{QNetworkAccessManager} {network access manager}, you would issue + a \l{QNetworkRequest} {network request} to the manager and receive a + \l{QNetworkReply} {network reply} in return. Since a QNetworkReply + is a QIODevice, you connect its \l{QNetworkReply::readyRead()} + {readyRead()} signal to a custom slot, e.g. \c{slotReadyRead()} in + the code snippet shown in the discussion for QNetworkAccessManager. + In this slot, you read all available data with + \l{QNetworkReply::readAll()} {readAll()} and pass it to the XML + stream reader using addData(). Then you call your custom parsing + function that reads the XML events from the reader. \section1 Performance and memory consumption |