46 #include <QtCore/QBuffer> 47 #include <QtCore/QIODevice> 48 #include <QtCore/QUrl> 59 , m_schemaIsValid(false)
105 load(reply.
data(), source, targetNamespace);
115 load(&buffer, documentUri, targetNamespace);
124 qWarning(
"A null QIODevice pointer cannot be passed.");
129 qWarning(
"The device must be readable.");
147 }
catch (QPatternist::Exception exception) {
QPatternist::ReferenceCountedValue< QAbstractMessageHandler >::Ptr m_messageHandler
QXmlNamePool namePool() const
QAbstractMessageHandler * messageHandler() const
#define QT_END_NAMESPACE
This macro expands to.
bool isReadable() const
Returns true if data can be read from the device; otherwise returns false.
QAbstractMessageHandler * m_userMessageHandler
QPatternist::XsdSchemaContext::Ptr m_schemaContext
bool open(OpenMode openMode)
Reimplemented Function
A smart pointer very similar to std::auto_ptr.
QNetworkAccessManager * m_userNetworkAccessManager
The QByteArray class provides an array of bytes.
QPatternist::XsdSchemaParserContext::Ptr m_schemaParserContext
QNetworkAccessManager * networkAccessManager() const
The QBuffer class provides a QIODevice interface for a QByteArray.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
QExplicitlySharedDataPointer< XsdSchemaParserContext > Ptr
The QXmlNamePool class is a table of shared strings referenced by instances of QXmlName.
const QAbstractUriResolver * m_uriResolver
The QAbstractUriResolver class is a callback interface for resolving Uniform Resource Identifiers...
#define QT_BEGIN_NAMESPACE
This macro expands to.
QXmlSchemaPrivate(const QXmlNamePool &namePool)
The resource loader will report no error and return an empty QNetworkReply.
The namespace for the internal API of QtXmlPatterns.
A context for schema parsing.
Q_CORE_EXPORT void qWarning(const char *,...)
static const char * data(const QByteArray &arr)
QExplicitlySharedDataPointer< QPatternist::NamePool > d
void setDocumentURI(const QUrl &uri)
The QNetworkAccessManager class allows the application to send network requests and receive replies...
static QNetworkReply * load(const QUrl &uri, QNetworkAccessManager *const networkManager, const ReportContext::Ptr &context, ErrorHandling handling=FailOnError)
Helper function that do NetworkAccessDelegator::get(), but does it blocked.
void load(const QUrl &source, const QString &targetNamespace)
QPatternist::ReferenceCountedValue< QNetworkAccessManager >::Ptr m_networkAccessManager
QAbstractMessageHandler * m_userMessageHandler
The QAbstractMessageHandler class provides a callback interface for handling messages.
The QSharedData class is a base class for shared data objects.
QNetworkAccessManager * m_userNetworkAccessManager
Implements the parsing of XML schema file.
void setMessageHandler(QAbstractMessageHandler *handler)
const QAbstractUriResolver * m_uriResolver
bool parse(ParserType parserType=TopLevelParser)
void setUriResolver(const QAbstractUriResolver *resolver)
QImageIOHandler * handler
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...
static QUrl normalizeQueryURI(const QUrl &uri)
void setNetworkAccessManager(QNetworkAccessManager *networkmanager)
const QAbstractUriResolver * uriResolver() const
void setTargetNamespace(const QString &targetNamespace)