OpenMW
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
CSMDoc::Operation Class Reference

#include <operation.hpp>

List of all members.

Public Slots

void abort ()

Signals

void progress (int current, int max, int type)
void reportMessage (const QString &message, int type)
void done (int type)

Public Member Functions

 Operation (int type, bool ordered, bool finalAlways=false)
virtual ~Operation ()
virtual void run ()
void appendStage (Stage *stage)
bool hasError () const

Private Slots

void executeStage ()
void operationDone ()

Private Member Functions

void prepareStages ()

Private Attributes

int mType
std::vector< std::pair< Stage
*, int > > 
mStages
std::vector< std::pair< Stage
*, int > >::iterator 
mCurrentStage
int mCurrentStep
int mCurrentStepTotal
int mTotalSteps
int mOrdered
bool mFinalAlways
bool mError

Constructor & Destructor Documentation

CSMDoc::Operation::Operation ( int  type,
bool  ordered,
bool  finalAlways = false 
)
Parameters:
orderedStages must be executed in the given order.
finalAlwaysExecute last stage even if an error occurred during earlier stages.

Member Function Documentation

void CSMDoc::Operation::abort ( ) [slot]

The ownership of stage is transferred to *this.

Attention:
Do no call this function while this Operation is running.
void CSMDoc::Operation::done ( int  type) [signal]
void CSMDoc::Operation::executeStage ( ) [private, slot]
void CSMDoc::Operation::operationDone ( ) [private, slot]
void CSMDoc::Operation::progress ( int  current,
int  max,
int  type 
) [signal]
void CSMDoc::Operation::reportMessage ( const QString &  message,
int  type 
) [signal]
void CSMDoc::Operation::run ( ) [virtual]

Member Data Documentation

std::vector<std::pair<Stage *, int> >::iterator CSMDoc::Operation::mCurrentStage [private]
bool CSMDoc::Operation::mError [private]
std::vector<std::pair<Stage *, int> > CSMDoc::Operation::mStages [private]
int CSMDoc::Operation::mType [private]

The documentation for this class was generated from the following files: