Skip to content

Class QfResourceSource

ClassList > QfResourceSource

More...

  • #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:

  • parent Parent object
  • prefix The project folder. Base directory path for all relative paths.
  • resourceFilePath Suggested 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