QFutureWatcher< T > Class Template Reference

QFutureWatcher< T > Class Template Reference

#include <qfuture.h>

Class Description

template<typename T>
class QFutureWatcher< T >

Definition at line 59 of file qfuture.h.

+ Inheritance diagram for QFutureWatcher< T >:

Public Member Functions

 QFutureWatcher (QObject *_parent=0)
 
 ~QFutureWatcher ()
 
void setFuture (const QFuture< T > &future)
 
QFuture< T > future () const
 
result () const
 
resultAt (int index) const
 
- Public Member Functions inherited from QFutureWatcherBase
 QFutureWatcherBase (QObject *parent=0)
 
int progressValue () const
 
int progressMinimum () const
 
int progressMaximum () const
 
QString progressText () const
 
bool isStarted () const
 
bool isFinished () const
 
bool isRunning () const
 
bool isCanceled () const
 
bool isPaused () const
 
void waitForFinished ()
 
void setPendingResultsLimit (int limit)
 
bool event (QEvent *event)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Additional Inherited Members

- Public Slots inherited from QFutureWatcherBase
void cancel ()
 
void setPaused (bool paused)
 
void pause ()
 
void resume ()
 
void togglePaused ()
 
- Public Slots inherited from QObject
void deleteLater ()
 
- Signals inherited from QFutureWatcherBase
void started ()
 
void finished ()
 
void canceled ()
 
void paused ()
 
void resumed ()
 
void resultReadyAt (int resultIndex)
 
void resultsReadyAt (int beginIndex, int endIndex)
 
void progressRangeChanged (int minimum, int maximum)
 
void progressValueChanged (int progressValue)
 
void progressTextChanged (const QString &progressText)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Member Functions inherited from QFutureWatcherBase
void connectNotify (const char *signal)
 
void disconnectNotify (const char *signal)
 
void connectOutputInterface ()
 
void disconnectOutputInterface (bool pendingAssignment=false)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Constructor & Destructor Documentation

QFutureWatcher ( QObject _parent = 0)
inline

Definition at line 126 of file qfuturewatcher.h.

127  : QFutureWatcherBase(_parent)
128  { }
QFutureWatcherBase(QObject *parent=0)
~QFutureWatcher ( )
inline

Definition at line 129 of file qfuturewatcher.h.

void disconnectOutputInterface(bool pendingAssignment=false)

Member Function Documentation

Q_INLINE_TEMPLATE void setFuture ( const QFuture< T > &  future)

Definition at line 182 of file qfuturewatcher.h.

183 {
184  if (_future == m_future)
185  return;
186 
188  m_future = _future;
190 }
void disconnectOutputInterface(bool pendingAssignment=false)
void connectOutputInterface()
QFuture<T> future ( ) const
inline

Definition at line 133 of file qfuturewatcher.h.

134  { return m_future; }
T result ( ) const
inline

Definition at line 136 of file qfuturewatcher.h.

136 { return m_future.result(); }
T resultAt ( int  index) const
inline

Definition at line 137 of file qfuturewatcher.h.

137 { return m_future.resultAt(index); }
GLuint index
Definition: GLee.h:1704

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