The DtdManager class keeps a cache of parsed DTDs and style sheets. More...
Publicly inherits QObject.
DtdManager | ( ); | |
void | clear | ( ); |
Dtd* | find | ( QString dtdName ); |
void | request | ( QObject* parser, QString doctype, QString id ); |
~DtdManager | ( ); |
void | done | ( Dtd* dtd ); |
Dtd* | findDtd | ( const QString& soi ); |
void | dtdReady | ( Dtd* dtd ); |
QList<Dtd> | _dtds; |
QList<Parser> | _parsers; |
QList<DtdRequest> | _requests; |
The DtdManager class keeps a cache of parsed DTDs and style sheets.
Any object that inherits from QObject can request a DTD from the DtdManagerm provided that it has a dtd( Dtd* ) slot. The slot is required because requests are processed asynchronously. This allows DTDs and style sheets to be retrieved from remote servers with non-blocking I/O.Create a new DtdManager.
Clear the DTD cache.
Lookup a DTD in the cache of parsed DTDs, with the given public identifier.
Process a request for the DTD with the given public identifier.
Destroy the DtdManager and its cache of DTDs.
This slot process the indication from the DtdParser that the DTD and its style sheet are ready.
This signal is emitted when a request DTD and its style sheet have been parsed. This signal is connected and disconnect when needed, so that it works like a dynamically bound function call. This way many differnet types of objects can request a DTD without being derived from a more specific class than QObject.