QFutureInterfaceBase Class Reference

QFutureInterfaceBase Class Reference

#include <qfutureinterface.h>

Class Description

Definition at line 64 of file qfutureinterface.h.

+ Inheritance diagram for QFutureInterfaceBase:

Public Types

enum  State {
  NoState = 0x00, Running = 0x01, Started = 0x02, Finished = 0x04,
  Canceled = 0x08, Paused = 0x10, Throttled = 0x20
}
 

Public Member Functions

 QFutureInterfaceBase (State initialState=NoState)
 
 QFutureInterfaceBase (const QFutureInterfaceBase &other)
 
virtual ~QFutureInterfaceBase ()
 
void reportStarted ()
 
void reportFinished ()
 
void reportCanceled ()
 
void reportException (const QtConcurrent::Exception &e)
 
void reportResultsReady (int beginIndex, int endIndex)
 
void setRunnable (QRunnable *runnable)
 
void setFilterMode (bool enable)
 
void setProgressRange (int minimum, int maximum)
 
int progressMinimum () const
 
int progressMaximum () const
 
bool isProgressUpdateNeeded () const
 
void setProgressValue (int progressValue)
 
int progressValue () const
 
void setProgressValueAndText (int progressValue, const QString &progressText)
 
QString progressText () const
 
void setExpectedResultCount (int resultCount)
 
int expectedResultCount ()
 
int resultCount () const
 
bool queryState (State state) const
 
bool isRunning () const
 
bool isStarted () const
 
bool isCanceled () const
 
bool isFinished () const
 
bool isPaused () const
 
bool isThrottled () const
 
bool isResultReadyAt (int index) const
 
void cancel ()
 
void setPaused (bool paused)
 
void togglePaused ()
 
void setThrottled (bool enable)
 
void waitForFinished ()
 
bool waitForNextResult ()
 
void waitForResult (int resultIndex)
 
void waitForResume ()
 
QMutexmutex () const
 
QtConcurrent::internal::ExceptionStoreexceptionStore ()
 
QtConcurrent::ResultStoreBaseresultStoreBase ()
 
const QtConcurrent::ResultStoreBaseresultStoreBase () const
 
bool operator== (const QFutureInterfaceBase &other) const
 
bool operator!= (const QFutureInterfaceBase &other) const
 
QFutureInterfaceBaseoperator= (const QFutureInterfaceBase &other)
 

Protected Member Functions

bool referenceCountIsOne () const
 

Friends

class QFutureWatcherBase
 
class QFutureWatcherBasePrivate
 

Member Enumeration Documentation

enum State
Enumerator
NoState 
Running 
Started 
Finished 
Canceled 
Paused 
Throttled 

Definition at line 67 of file qfutureinterface.h.

Constructor & Destructor Documentation

QFutureInterfaceBase ( State  initialState = NoState)
virtual ~QFutureInterfaceBase ( )
virtual

Member Function Documentation

void reportStarted ( )
void reportFinished ( )
void reportCanceled ( )
void reportException ( const QtConcurrent::Exception e)
void reportResultsReady ( int  beginIndex,
int  endIndex 
)
void setRunnable ( QRunnable runnable)
void setFilterMode ( bool  enable)
void setProgressRange ( int  minimum,
int  maximum 
)
int progressMinimum ( ) const
int progressMaximum ( ) const
bool isProgressUpdateNeeded ( ) const
void setProgressValue ( int  progressValue)
int progressValue ( ) const
void setProgressValueAndText ( int  progressValue,
const QString progressText 
)
QString progressText ( ) const
void setExpectedResultCount ( int  resultCount)
int expectedResultCount ( )
int resultCount ( ) const
bool queryState ( State  state) const
bool isRunning ( ) const
bool isStarted ( ) const
bool isCanceled ( ) const
bool isFinished ( ) const
bool isPaused ( ) const
bool isThrottled ( ) const
bool isResultReadyAt ( int  index) const
void cancel ( )
void setPaused ( bool  paused)
void togglePaused ( )
void setThrottled ( bool  enable)
void waitForFinished ( )
bool waitForNextResult ( )
void waitForResult ( int  resultIndex)
void waitForResume ( )
QMutex* mutex ( ) const
QtConcurrent::ResultStoreBase& resultStoreBase ( )
const QtConcurrent::ResultStoreBase& resultStoreBase ( ) const
bool operator== ( const QFutureInterfaceBase other) const
inline

Definition at line 129 of file qfutureinterface.h.

129 { return d == other.d; }
bool operator!= ( const QFutureInterfaceBase other) const
inline

Definition at line 130 of file qfutureinterface.h.

130 { return d != other.d; }
QFutureInterfaceBase& operator= ( const QFutureInterfaceBase other)
bool referenceCountIsOne ( ) const
protected

Friends And Related Function Documentation

friend class QFutureWatcherBase
friend

Definition at line 143 of file qfutureinterface.h.

friend class QFutureWatcherBasePrivate
friend

Definition at line 144 of file qfutureinterface.h.


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