|
virtual void | downloadFinished (const QByteArray &data) override |
|
int | getLRUKey () const |
| Returns the key last used to identify this resource in the unused map.
|
|
void | ensureLoading () |
| Makes sure that the resource has started loading.
|
|
virtual void | setLoadPriority (const QPointer< QObject > &owner, float priority) |
| Sets the load priority for one owner.
|
|
virtual void | setLoadPriorities (const QHash< QPointer< QObject >, float > &priorities) |
| Sets a set of priorities at once.
|
|
virtual void | clearLoadPriority (const QPointer< QObject > &owner) |
| Clears the load priority for one owner.
|
|
float | getLoadPriority () |
| Returns the highest load priority across all owners.
|
|
virtual bool | isLoaded () const |
| Checks whether the resource has loaded.
|
|
virtual bool | isFailed () const |
| Checks whether the resource has failed to download.
|
|
qint64 | getBytesReceived () const |
| For loading resources, returns the number of bytes received.
|
|
qint64 | getBytesTotal () const |
| For loading resources, returns the number of total bytes (<= zero if unknown).
|
|
qint64 | getBytes () const |
| For loaded resources, returns the number of actual bytes (defaults to total bytes if not explicitly set).
|
|
float | getProgress () const |
| For loading resources, returns the load progress.
|
|
virtual void | refresh () |
| Refreshes the resource.
|
|
|
void | loading () |
| Fired when the resource begins downloading.
|
|
void | loaded (const QByteArray request) |
|
void | finished (bool success) |
| Fired when the resource has finished loading.
|
|
void | failed (QNetworkReply::NetworkError error) |
| Fired when the resource failed to load.
|
|
void | onRefresh () |
| Fired when the resource is refreshed.
|
|
void | onProgress (uint64_t bytesReceived, uint64_t bytesTotal) |
| Fired on progress updates.
|
|
void | updateSize (qint64 deltaSize) |
| Fired when the size changes (through setSize).
|
|
A geometry loaded from the network.