OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Protected Slots | Private Slots | Private Member Functions | Private Attributes | List of all members
CSMDoc::Operation Class Reference

#include <operation.hpp>

Inheritance diagram for CSMDoc::Operation:
Collaboration diagram for CSMDoc::Operation:

Public Slots

void abort ()
 
void run ()
 

Signals

void progress (int current, int max, int type)
 
void reportMessage (const CSMDoc::Message &message, int type)
 
void done (int type, bool failed)
 

Public Member Functions

 Operation (int type, bool ordered, bool finalAlways=false)
 
virtual ~Operation ()
 
void appendStage (Stage *stage)
 
void setDefaultSeverity (Message::Severity severity)
 
bool hasError () const
 

Protected Slots

virtual void operationDone ()
 

Private Slots

void executeStage ()
 

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
 
bool mConnected
 
QTimer * mTimer
 
bool mPrepared
 
Message::Severity mDefaultSeverity
 

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.
CSMDoc::Operation::~Operation ( )
virtual

Member Function Documentation

void CSMDoc::Operation::abort ( )
slot
void CSMDoc::Operation::appendStage ( Stage stage)

The ownership of stage is transferred to *this.

Attention
Do no call this function while this Operation is running.

Here is the caller graph for this function:

void CSMDoc::Operation::done ( int  type,
bool  failed 
)
signal
void CSMDoc::Operation::executeStage ( )
privateslot

Here is the call graph for this function:

bool CSMDoc::Operation::hasError ( ) const
void CSMDoc::Operation::operationDone ( )
protectedvirtualslot

Here is the caller graph for this function:

void CSMDoc::Operation::prepareStages ( )
private
void CSMDoc::Operation::progress ( int  current,
int  max,
int  type 
)
signal
void CSMDoc::Operation::reportMessage ( const CSMDoc::Message message,
int  type 
)
signal
void CSMDoc::Operation::run ( )
slot
void CSMDoc::Operation::setDefaultSeverity ( Message::Severity  severity)
Attention
Do no call this function while this Operation is running.

Here is the caller graph for this function:

Member Data Documentation

bool CSMDoc::Operation::mConnected
private
std::vector<std::pair<Stage *, int> >::iterator CSMDoc::Operation::mCurrentStage
private
int CSMDoc::Operation::mCurrentStep
private
int CSMDoc::Operation::mCurrentStepTotal
private
Message::Severity CSMDoc::Operation::mDefaultSeverity
private
bool CSMDoc::Operation::mError
private
bool CSMDoc::Operation::mFinalAlways
private
int CSMDoc::Operation::mOrdered
private
bool CSMDoc::Operation::mPrepared
private
std::vector<std::pair<Stage *, int> > CSMDoc::Operation::mStages
private
QTimer* CSMDoc::Operation::mTimer
private
int CSMDoc::Operation::mTotalSteps
private
int CSMDoc::Operation::mType
private

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