Public Member Functions

QFutureWatcher< T > Class Template Reference

Search for all occurrences

Detailed Description

template<typename T>
class QFutureWatcher< T >

Definition at line 118 of file qfuturewatcher.h.

#include <qfuturewatcher.h>

Inheritance diagram for QFutureWatcher< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  QFutureWatcher (QObject *_parent=0)
  ~QFutureWatcher ()
void  setFuture (const QFuture< T > &future)
QFuture< T >  future () const
result () const
resultAt (int index) const

Constructor & Destructor Documentation

QFutureWatcher ( QObject _parent = 0 ) [inline]

Definition at line 121 of file qfuturewatcher.h.

        : QFutureWatcherBase(_parent)
    { }
~QFutureWatcher ( ) [inline]

Definition at line 124 of file qfuturewatcher.h.


Member Function Documentation

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

Definition at line 177 of file qfuturewatcher.h.

{
    if (_future == m_future)
        return;

    disconnectOutputInterface(true);
    m_future = _future;
    connectOutputInterface();
}
QFuture<T> future ( ) const [inline]

Definition at line 128 of file qfuturewatcher.h.

    { return m_future; }
T result ( ) const [inline]

Definition at line 131 of file qfuturewatcher.h.

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

Definition at line 132 of file qfuturewatcher.h.

{ return m_future.resultAt(index); }

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