Run an action. If an action runing, a run is scheduled after current run. Only one run is scheduled. More...
#include <actionscheduler.hpp>
Public Slots | |
void | actionFinished () |
Slot use to be notified when action is finished. | |
Signals | |
void | launchAction (const QVariantMap &) |
Signal emitted to run an action when the builded QVariantMap in parameter. | |
Public Member Functions | |
ActionScheduler (QObject *=0) | |
void | addListenEmitter (const Emitter &emitter, const QStringList &names=QStringList()) |
set the listened emitter. | |
void | addListenEmitterProperty (const Emitter &emitter, const char *property, const QString &name) |
Add the listened QObject property when the QObject emit the signal. | |
void | addListenProperty (const QObject *object, const char *property, const QString &name) |
Add a QObject property to read when launchAction is emitted. | |
Friends | |
struct | ActionSchedulerPrivate |
Run an action. If an action runing, a run is scheduled after current run. Only one run is scheduled.
Definition at line 51 of file actionscheduler.hpp.
QExtend::ActionScheduler::ActionScheduler | ( | QObject * | = 0 |
) |
void QExtend::ActionScheduler::actionFinished | ( | ) | [slot] |
Slot use to be notified when action is finished.
void QExtend::ActionScheduler::addListenEmitter | ( | const Emitter & | emitter, | |
const QStringList & | names = QStringList() | |||
) |
set the listened emitter.
set the listened emitter.
emitter | listened emitter. | |
names | names use to stocke parameters in a QVariantMap. If a parameters name is empty, this parameters is not stocked. |
void QExtend::ActionScheduler::addListenEmitterProperty | ( | const Emitter & | emitter, | |
const char * | property, | |||
const QString & | name | |||
) |
Add the listened QObject property when the QObject emit the signal.
emitter | Listened emitter. | |
property | Property name. | |
name | Name use to stocke parameters in a QVariantMap. |
void QExtend::ActionScheduler::addListenProperty | ( | const QObject * | object, | |
const char * | property, | |||
const QString & | name | |||
) |
Add a QObject property to read when launchAction is emitted.
object | QObject instance | |
property | Property name. | |
name | Name use to stocke parameters in a QVariantMap. |
void QExtend::ActionScheduler::launchAction | ( | const QVariantMap & | ) | [signal] |
Signal emitted to run an action when the builded QVariantMap in parameter.
friend struct ActionSchedulerPrivate [friend] |
Definition at line 56 of file actionscheduler.hpp.
© 2000-2024 - www.developpez.com