QAbstractUriResolver Class
The QAbstractUriResolver class is a callback interface for resolving Uniform Resource Identifiers. A Uniform Resource Identifier (URI) is a string that uniquely identifies a resource. URIs are versatile global identifiers. It is often useful to transform a URI that identifies something logical into a URI that locates something physical (a URL), or to simply map a URI to a different URI. QAbstractUriResolver::resolve() provides this functionality. More...
| Header: | #include <QAbstractUriResolver> |
| qmake: | QT += xmlpatterns |
| Since: | Qt 4.4 |
| Inherits: | QObject |
This class was introduced in Qt 4.4.
Note: All functions in this class are reentrant.
Public Functions
| QAbstractUriResolver(QObject *parent = nullptr) | |
| virtual | ~QAbstractUriResolver() |
- 16 public functions inherited from QObject
Related Non-Members
| typedef | QObjectList |
Macros
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO(Name, Value) | |
| Q_DISABLE_COPY(Class) | |
| Q_DISABLE_COPY_MOVE(Class) | |
| Q_DISABLE_MOVE(Class) | |
| Q_EMIT | |
| Q_ENUM(...) | |
| Q_ENUM_NS(...) | |
| Q_FLAG(...) | |
| Q_FLAG_NS(...) | |
| Q_GADGET | |
| Q_INTERFACES(...) | |
| Q_INVOKABLE | |
| Q_NAMESPACE | |
| Q_OBJECT | |
| Q_PROPERTY(...) | |
| Q_REVISION | |
| Q_SET_OBJECT_NAME(Object) | |
| Q_SIGNAL | |
| Q_SIGNALS | |
| Q_SLOT | |
| Q_SLOTS |
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 5 static public members inherited from QObject
- 8 protected functions inherited from QObject
Detailed Description
For example, one could write a QAbstractUriResolver subclass that rewrites library ISBN number URIs as book title URLs, e.g., urn:isbn:0-345-33973-8 would be rewritten as file:///books/returnOfTheKing.doc. Or a QAbstractUriResolver subclass could be written for a web browser to let the web browser protect the user's private files by mapping incoming requests for them to null URIs.
See also http://en.wikipedia.org/wiki/Uniform_Resource_Identifier.
Member Function Documentation
QAbstractUriResolver::QAbstractUriResolver(QObject *parent = nullptr)
Constructs a QAbstractUriResolver with the specified parent.
[virtual] QAbstractUriResolver::~QAbstractUriResolver()
Destructor.