Class ResourceSource
#include <resourcesource.h>
Inherits the following classes: QObject
Inherited by the following classes: AndroidResourceSource, IosResourceSource
Public Signals
| Type | Name |
|---|---|
| signal void | resourceReceived (const QString & path) |
Public Functions
| Type | Name |
|---|---|
| ResourceSource (QObject * parent=nullptr, const QString & prefix=QString(), const QString & resourceFilePath=QString()) |
|
| virtual | ~ResourceSource () |
Detailed Description
A resource source object will be created when a new resource is requested from the system. It should be subclassed and filled with platform specific code.
Public Signals Documentation
signal resourceReceived
void ResourceSource::resourceReceived;
Emit this signal when a resource really has been received.
Note:
When the constructor received a non-empty resourceFilePath, the signal is emitted in the constructor.
Public Functions Documentation
function ResourceSource
explicit ResourceSource::ResourceSource (
QObject * parent=nullptr,
const QString & prefix=QString(),
const QString & resourceFilePath=QString()
)
Construct a new ResourceSource object.
Note:
Subclasses which implement their own file dialog should provide an empty string for resourceFilePath and emit resourceReceived when appropriate.
Parameters:
parentParent objectprefixThe project folder. Base directory path for all relative paths.resourceFilePathSuggested file path to permanently store the file. If the file is not existing yet, it must be an empty string.
function ~ResourceSource
virtual ResourceSource::~ResourceSource ()
Destroy the ResourceSource object
The documentation for this class was generated from the following file src/core/resourcesource.h