IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QExtend::ActionScheduler Class Reference

Run an action. If an action runing, a run is scheduled after current run. Only one run is scheduled. More...

#include <actionscheduler.hpp>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

QExtend::ActionScheduler::ActionScheduler ( QObject *  = 0  ) 

Member Function Documentation

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.

Parameters:
emitter listened emitter.
names names use to stocke parameters in a QVariantMap. If a parameters name is empty, this parameters is not stocked.
Returns:
new instance.
void QExtend::ActionScheduler::addListenEmitterProperty ( const Emitter emitter,
const char *  property,
const QString &  name 
)

Add the listened QObject property when the QObject emit the signal.

Parameters:
emitter Listened emitter.
property Property name.
name Name use to stocke parameters in a QVariantMap.
Returns:
new instance.
void QExtend::ActionScheduler::addListenProperty ( const QObject *  object,
const char *  property,
const QString &  name 
)

Add a QObject property to read when launchAction is emitted.

Parameters:
object QObject instance
property Property name.
name Name use to stocke parameters in a QVariantMap.
Returns:
new instance.
void QExtend::ActionScheduler::launchAction ( const QVariantMap &   )  [signal]

Signal emitted to run an action when the builded QVariantMap in parameter.


Friends And Related Function Documentation

friend struct ActionSchedulerPrivate [friend]

Definition at line 56 of file actionscheduler.hpp.

Responsable bénévole de la rubrique Qt : Thibaut Cuvelier -