QFuture< void > Class Template Reference

QFuture< void > Class Template Reference

#include <qfuture.h>

Class Description

template<>
class QFuture< void >

Definition at line 194 of file qfuture.h.

Public Member Functions

 QFuture ()
 
 QFuture (QFutureInterfaceBase *p)
 
 QFuture (const QFuture &other)
 
 ~QFuture ()
 
QFutureoperator= (const QFuture &other)
 
bool operator== (const QFuture &other) const
 
bool operator!= (const QFuture &other) const
 
template<typename T >
 QFuture (const QFuture< T > &other)
 
template<typename T >
QFuture< void > & operator= (const QFuture< T > &other)
 
void cancel ()
 
bool isCanceled () const
 
void setPaused (bool paused)
 
bool isPaused () const
 
void pause ()
 
void resume ()
 
void togglePaused ()
 
bool isStarted () const
 
bool isFinished () const
 
bool isRunning () const
 
int resultCount () const
 
int progressValue () const
 
int progressMinimum () const
 
int progressMaximum () const
 
QString progressText () const
 
void waitForFinished ()
 

Friends

class QFutureWatcher< void >
 

Constructor & Destructor Documentation

QFuture ( )
inline

Definition at line 197 of file qfuture.h.

QFuture ( QFutureInterfaceBase p)
inlineexplicit

Definition at line 200 of file qfuture.h.

201  : d(*p)
202  { }
QFuture ( const QFuture< void > &  other)
inline

Definition at line 203 of file qfuture.h.

204  : d(other.d)
205  { }
QFutureInterface< T > d
Definition: qfuture.h:161
~QFuture ( )
inline

Definition at line 206 of file qfuture.h.

207  { }
QFuture ( const QFuture< T > &  other)
inline

Definition at line 215 of file qfuture.h.

216  : d(other.d)
217  { }
QFutureInterface< T > d
Definition: qfuture.h:161

Member Function Documentation

QFuture& operator= ( const QFuture< void > &  other)
bool operator== ( const QFuture< void > &  other) const
inline

Definition at line 210 of file qfuture.h.

210 { return (d == other.d); }
QFutureInterface< T > d
Definition: qfuture.h:161
bool operator!= ( const QFuture< void > &  other) const
inline

Definition at line 211 of file qfuture.h.

211 { return (d != other.d); }
QFutureInterface< T > d
Definition: qfuture.h:161
QFuture<void>& operator= ( const QFuture< T > &  other)
inline

Definition at line 220 of file qfuture.h.

221  {
222  d = other.d;
223  return *this;
224  }
QFutureInterface< T > d
Definition: qfuture.h:161
void cancel ( )
inline

Definition at line 227 of file qfuture.h.

227 { d.cancel(); }
bool isCanceled ( ) const
inline

Definition at line 228 of file qfuture.h.

228 { return d.isCanceled(); }
bool isCanceled() const
void setPaused ( bool  paused)
inline

Definition at line 230 of file qfuture.h.

230 { d.setPaused(paused); }
void setPaused(bool paused)
bool isPaused ( ) const
inline

Definition at line 231 of file qfuture.h.

231 { return d.isPaused(); }
bool isPaused() const
void pause ( )
inline

Definition at line 232 of file qfuture.h.

232 { setPaused(true); }
void setPaused(bool paused)
Definition: qfuture.h:230
void resume ( )
inline

Definition at line 233 of file qfuture.h.

233 { setPaused(false); }
void setPaused(bool paused)
Definition: qfuture.h:230
void togglePaused ( )
inline

Definition at line 234 of file qfuture.h.

234 { d.togglePaused(); }
bool isStarted ( ) const
inline

Definition at line 236 of file qfuture.h.

236 { return d.isStarted(); }
bool isStarted() const
bool isFinished ( ) const
inline

Definition at line 237 of file qfuture.h.

237 { return d.isFinished(); }
bool isFinished() const
bool isRunning ( ) const
inline

Definition at line 238 of file qfuture.h.

238 { return d.isRunning(); }
bool isRunning() const
int resultCount ( ) const
inline

Definition at line 240 of file qfuture.h.

240 { return d.resultCount(); }
int resultCount() const
int progressValue ( ) const
inline

Definition at line 241 of file qfuture.h.

241 { return d.progressValue(); }
int progressValue() const
int progressMinimum ( ) const
inline

Definition at line 242 of file qfuture.h.

242 { return d.progressMinimum(); }
int progressMinimum() const
int progressMaximum ( ) const
inline

Definition at line 243 of file qfuture.h.

243 { return d.progressMaximum(); }
int progressMaximum() const
QString progressText ( ) const
inline

Definition at line 244 of file qfuture.h.

244 { return d.progressText(); }
QString progressText() const
void waitForFinished ( )
inline

Definition at line 245 of file qfuture.h.

245 { d.waitForFinished(); }

Friends And Related Function Documentation

friend class QFutureWatcher< void >
friend

Definition at line 248 of file qfuture.h.


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