Source Code (Use browser search to find items of interest.)
Class Index
empath'EmpathTaskTimer (./kdepim/empath/lib/EmpathTaskTimer.h:39)
class EmpathTaskTimer : public QObject
{
Q_OBJECT
public:
EmpathTaskTimer(EmpathTask *);
~EmpathTaskTimer();
protected slots:
void s_timeout();
void s_done();
signals:
void newTask(EmpathTask *);
private:
EmpathTask * task_;
QTimer timer_;
};
#endif
// vim:ts=4:sw=4:tw=78
empath'EmpathTaskTimer::EmpathTaskTimer() (./kdepim/empath/lib/EmpathTaskTimer.cpp:29)
EmpathTaskTimer::EmpathTaskTimer(EmpathTask * t)
: QObject(),
task_(t)
{
empathDebug("");
QObject::connect(
task_, SIGNAL(finished()),
this, SLOT(s_done()));
QObject::connect(
&timer_,SIGNAL(timeout()),
this, SLOT(s_timeout()));
QObject::connect(
this, SIGNAL(newTask(EmpathTask *)),
empath, SLOT(s_newTask(EmpathTask *)));
timer_.start(100, true); // 0.1 s
}
empath'EmpathTaskTimer::~EmpathTaskTimer() (./kdepim/empath/lib/EmpathTaskTimer.cpp:49)
EmpathTaskTimer::~EmpathTaskTimer()
{
// delete task_;
// task_ = 0;
}
void
empath'EmpathTaskTimer::s_done() (./kdepim/empath/lib/EmpathTaskTimer.cpp:56)
EmpathTaskTimer::s_done()
{
empathDebug("");
QObject::disconnect(
task_, SIGNAL(finished()),
this, SLOT(s_done()));
timer_.stop();
delete this;
}
void
empath'EmpathTaskTimer::s_timeout() (./kdepim/empath/lib/EmpathTaskTimer.cpp:67)
EmpathTaskTimer::s_timeout()
{
empathDebug("");
emit(newTask(task_));
}
// vim:ts=4:sw=4:tw=78