The AbstractEngine class provides the base interface class of audio audio engines.
More...
#include <abstractengine.h>
The AbstractEngine class provides the base interface class of audio audio engines.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
Definition at line 38 of file abstractengine.h.
AbstractEngine::AbstractEngine |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Object constructor.
- Parameters
-
virtual AbstractEngine::~AbstractEngine |
( |
| ) |
|
|
virtualdefault |
static QStringList AbstractEngine::contentTypes |
( |
| ) |
|
|
static |
Creates Engine object.
- Parameters
-
s | InputSource object. |
parent | Parent object. Returns 0 if the given source is not supported. |
static QList<EngineFactory*> AbstractEngine::enabledFactories |
( |
| ) |
|
|
static |
Returns a list of enabled engine factories.
virtual bool AbstractEngine::enqueue |
( |
InputSource * |
source | ) |
|
|
pure virtual |
Prepares decoder for usage. Subclass should reimplement this function.
Implemented in QmmpAudioEngine.
Returns a list of engine factories.
Returns plugin file path.
- Parameters
-
factory | Engine plugin factory. |
Returns EngineFactory pointer which supports file path or 0 if file path is unsupported.
Returns true if engine is enabled, otherwise returns false This function uses QObject::objectName() function.
- Parameters
-
factory | Engine plugin factory. |
Returns true if engine is enabled, otherwise returns false
- Parameters
-
static void AbstractEngine::loadPlugins |
( |
| ) |
|
|
staticprivate |
QMutex* AbstractEngine::mutex |
( |
| ) |
|
|
protected |
static QStringList AbstractEngine::nameFilters |
( |
| ) |
|
|
static |
Returns a list of file name filters, i.e. "*.mp3 *.mpg".
virtual void AbstractEngine::pause |
( |
| ) |
|
|
pure virtual |
virtual bool AbstractEngine::play |
( |
| ) |
|
|
pure virtual |
Starts playback. Returns true if playback has been started successful, otherwise returns false.
Implemented in QmmpAudioEngine.
static QStringList AbstractEngine::protocols |
( |
| ) |
|
|
static |
Returns a list of supported protocols (including meta-protocols). This fuction ignores disabled engines.
virtual void AbstractEngine::seek |
( |
qint64 |
time | ) |
|
|
pure virtual |
Requests a seek to the time time indicated, specified in milliseconds.
Implemented in QmmpAudioEngine.
static void AbstractEngine::setEnabled |
( |
EngineFactory * |
factory, |
|
|
bool |
enable = true |
|
) |
| |
|
static |
Sets whether the engine is enabled.
- Parameters
-
factory | Engine plugin factory. |
enable | Plugin enable state (true - enable, false - disable) |
virtual void AbstractEngine::stop |
( |
| ) |
|
|
pure virtual |
QStringList AbstractEngine::m_disabledNames |
|
staticprivate |
QMutex AbstractEngine::m_mutex |
|
private |
The documentation for this class was generated from the following file: