pwfengine
Public Member Functions | Friends
PActionGroup Class Reference

A group of PAction that operate simultaneously. The class is a PAction itself. More...

#include <PActionGroup.h>

Inheritance diagram for PActionGroup:
PAction

List of all members.

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

Detailed Description

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.


Member Function Documentation

void PActionGroup::addAction ( PAction action)

Note: this object become parent of the action

int PActionGroup::remainingActions ( ) const
Returns:
the number of added PAction that have not finished yet
void PActionGroup::setSingleStatusToStop ( const PAction::StatusType singleStatus,
const PAction::StatusType groupStatus 
)

Set when to emit the finished signals and with which status

Parameters:
singleStatusthe type of the finished status of one PAction needed to stop. StatusNone means never stop prematurely
groupStatusthe finished status when the prematurely stop occurs

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Enumerator