|
pwfengine
|
A group of PAction that operate simultaneously. The class is a PAction itself. More...
#include <PActionGroup.h>
Public Member Functions | |
| PActionGroup (QObject *parent=0) | |
| void | addAction (PAction *action) |
| void | setSingleStatusToStop (const PAction::StatusType &singleStatus, const PAction::StatusType &groupStatus) |
| int | remainingActions () const |
Friends | |
| class | PActionGroupPrivate |
A group of PAction that operate simultaneously. The class is a PAction itself.
The class provides methods for managing group of PAction, allowing to specify when finish: on success or failure of an action or never, waiting that all the actions have finished. When the PActionGroup is stopped or finish, all its (active) PAction are stopped too. Each PAction object is automatically deleted when it finishes.
The actions can be added with the addAction() method. The start() method will in turn execute all the added actions.
| void PActionGroup::addAction | ( | PAction * | action | ) |
Note: this object become parent of the action
| int PActionGroup::remainingActions | ( | ) | const |
| void PActionGroup::setSingleStatusToStop | ( | const PAction::StatusType & | singleStatus, |
| const PAction::StatusType & | groupStatus | ||
| ) |
Set when to emit the finished signals and with which status
| singleStatus | the type of the finished status of one PAction needed to stop. StatusNone means never stop prematurely |
| groupStatus | the finished status when the prematurely stop occurs |
1.7.4