52 #ifndef Patternist_AccelTreeResourceLoader_H 53 #define Patternist_AccelTreeResourceLoader_H 55 #include <QtCore/QEventLoop> 56 #include <QtNetwork/QNetworkReply> 138 virtual bool isDocumentAvailable(
const QUrl &uri);
140 virtual bool isUnparsedTextAvailable(
const QUrl &uri,
143 virtual Item openUnparsedText(
const QUrl &uri,
181 static bool streamToReceiver(
QIODevice *
const dev,
186 bool retrieveDocument(
const QUrl &uri,
188 bool retrieveDocument(
QIODevice *source,
const QUrl &documentUri,
193 bool retrieveUnparsedText(
const QUrl &uri,
#define QT_END_NAMESPACE
This macro expands to.
Handles requests for documents, and instantiates them as AccelTree instances.
QHash< QUrl, AccelTree::Ptr > m_loadedDocuments
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
Builds an AccelTree from a stream of XML/Item events received through the NodeBuilder interface...
static void clear(QVariant::Private *d)
NetworkError
Indicates all possible error conditions found during the processing of the request.
const NetworkAccessDelegator::Ptr m_networkAccessDelegator
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
const NamePool::Ptr m_namePool
#define QT_BEGIN_NAMESPACE
This macro expands to.
An helper class which enables QNetworkAccessManager to be used in a blocking manner.
The QEventLoop class provides a means of entering and leaving an event loop.
The namespace for the internal API of QtXmlPatterns.
static bool openDocument(const QUrl &file)
The QNetworkAccessManager class allows the application to send network requests and receive replies...
QHash< QPair< QUrl, QString >, QString > m_unparsedTexts
void exit(int returnCode=0)
Tells the event loop to exit with a return code.
Represents an item in the XPath 2.0 Data Model.
#define Q_AUTOTEST_EXPORT
AccelTreeBuilder< true >::Features m_features
The resource loader will report the error via the report context.
The QIODevice class is the base interface class of all I/O devices in Qt.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
void error(QNetworkReply::NetworkError code)
Base class for all instances that represents something at a certain location.
Base class for resource loaders that manage device variables.