Class QfResourceSource
#include <qfresourcesource.h>
Inherits the following classes: QObject
Inherited by the following classes: QfAndroidResourceSource, QfIosResourceSource
Public Signals
| Type | Name |
|---|---|
| signal void | resourceReceived (const QString & path) |
Public Functions
| Type | Name |
|---|---|
| QfResourceSource (QObject * parent=nullptr, const QString & prefix=QString(), const QString & resourceFilePath=QString()) |
|
| virtual | ~QfResourceSource () |
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 QfResourceSource::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 QfResourceSource
explicit QfResourceSource::QfResourceSource (
QObject * parent=nullptr,
const QString & prefix=QString(),
const QString & resourceFilePath=QString()
)
Construct a new QfResourceSource 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 ~QfResourceSource
virtual QfResourceSource::~QfResourceSource ()
Destroy the QfResourceSource object
The documentation for this class was generated from the following file src/core/qfresourcesource.h