resource abstraction.
More...
#include <linguisticProcessing/core/LinguisticResources/AbstractResourceBase.h>
|
| void | resourceFileChanged (const QString &path) |
| | Signal triggered whenever one of the registered files changes on disk.
|
| |
resource abstraction.
All resource should inherit from this class
- Author
- Benoit Mathieu mathi.nosp@m.eub@.nosp@m.zoe.c.nosp@m.ea.f.nosp@m.r
AbstractResource inherits from QObject to be able to trigger the resourceFileChanged signal whenever one of the files it has registered changes. The init function should use the LimaFileSystemWatcher accessed using the protected resourceFileWatcher accessor to register its resource files. Then it can connect a slot to the resourceFileChanged signal to do whatever necessary with this changed resource, for example reloading it.
Definition at line 36 of file AbstractResourceBase.h.
◆ AbstractResourceBase() [1/2]
| Lima::LinguisticProcessing::AbstractResourceBase::AbstractResourceBase |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ ~AbstractResourceBase()
| Lima::LinguisticProcessing::AbstractResourceBase::~AbstractResourceBase |
( |
| ) |
|
|
virtual |
◆ AbstractResourceBase() [2/2]
| Lima::LinguisticProcessing::AbstractResourceBase::AbstractResourceBase |
( |
const AbstractResourceBase & |
r | ) |
|
◆ getResourceFileName()
| QString Lima::LinguisticProcessing::AbstractResourceBase::getResourceFileName |
( |
const QString & |
paramName | ) |
|
◆ resourceFileChanged
| void Lima::LinguisticProcessing::AbstractResourceBase::resourceFileChanged |
( |
const QString & |
path | ) |
|
|
signal |
Signal triggered whenever one of the registered files changes on disk.
- Parameters
-
| path | The full path to the changed file |
◆ resourceFileWatcher()
Accessor to the file watcher used to register resource files to be watched for changes.
- Returns
- The file watcher used to register resource files to be watched for changes.
Definition at line 65 of file AbstractResourceBase.cpp.
◆ m_d
The documentation for this class was generated from the following files: