tnt::BackgroundTask Class Reference

#include <tnt/backgroundworker.h>

Inheritance diagram for tnt::BackgroundTask:
cxxtools::AtomicRefCounted cxxtools::NonCopyable

Public Types

typedef cxxtools::SmartPtr
< BackgroundTask
Pointer

Public Member Functions

 BackgroundTask (const cxxtools::Timespan &livetime=cxxtools::Timespan(0, 0))
virtual ~BackgroundTask ()
unsigned id () const
unsigned progress () const
bool ready () const
const cxxtools::DateTimetimeoutTime () const
const cxxtools::Timespanlivetime () const
void livetime (const cxxtools::Timespan &livetime)
void updateProgress (unsigned p)
virtual void execute ()=0
- Public Member Functions inherited from cxxtools::AtomicRefCounted
 AtomicRefCounted ()
 AtomicRefCounted (unsigned refs_)
virtual ~AtomicRefCounted ()
virtual atomic_t addRef ()
virtual atomic_t release ()
atomic_t refs () const

Friends

class BackgroundWorker

Member Typedef Documentation

Constructor & Destructor Documentation

tnt::BackgroundTask::BackgroundTask ( const cxxtools::Timespan livetime = cxxtools::Timespan(0, 0))
inline
virtual tnt::BackgroundTask::~BackgroundTask ( )
inlinevirtual

Member Function Documentation

virtual void tnt::BackgroundTask::execute ( )
pure virtual
unsigned tnt::BackgroundTask::id ( ) const
inline
const cxxtools::Timespan& tnt::BackgroundTask::livetime ( ) const
inline
void tnt::BackgroundTask::livetime ( const cxxtools::Timespan livetime)
unsigned tnt::BackgroundTask::progress ( ) const
bool tnt::BackgroundTask::ready ( ) const
inline
const cxxtools::DateTime& tnt::BackgroundTask::timeoutTime ( ) const
inline
void tnt::BackgroundTask::updateProgress ( unsigned  p)

Friends And Related Function Documentation

friend class BackgroundWorker
friend

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