Quark  0.1
ThreadDelegate< T > Class Template Reference

A subclass of QThread that executes a method of another object in its run() method. More...

#include <ThreadDelegate.h++>

Inheritance diagram for ThreadDelegate< T >:

Public Member Functions

 ThreadDelegate (T *object, void(T::*method)(), QObject *parent=NULL)
 Constructs a new ThreadDelegate object with the given target object and method. More...
 
 ~ThreadDelegate ()
 Destructor. More...
 
virtual void run ()
 

Detailed Description

template<class T>
class quark::util::ThreadDelegate< T >

A subclass of QThread that executes a method of another object in its run() method.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ThreadDelegate()

ThreadDelegate ( T *  object,
void(T::*)()  method,
QObject *  parent = NULL 
)
inline

Constructs a new ThreadDelegate object with the given target object and method.

◆ ~ThreadDelegate()

~ThreadDelegate ( )
inline

Destructor.

Member Function Documentation

◆ run()

virtual void run ( )
inlinevirtual

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