21 #include "kmfactory.h"
23 #include <tdeconfig.h>
25 KMTimer* KMTimer::m_self = 0;
27 KMTimer* KMTimer::self()
31 m_self =
new KMTimer(KMFactory::self(),
"InternalTimer");
37 KMTimer::KMTimer(TQObject *parent,
const char *name)
38 : TQTimer(parent, name), m_count(0)
40 connect(
this, TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
54 void KMTimer::release()
59 void KMTimer::release(
bool do_emit)
61 releaseTimer(do_emit);
64 void KMTimer::releaseTimer(
bool do_emit)
66 m_count = TQMAX(0, m_count-1);
75 void KMTimer::delay(
int t)
80 void KMTimer::slotTimeout()
85 void KMTimer::startTimer(
int t)
89 TDEConfig *conf = KMFactory::self()->printConfig();
90 conf->setGroup(
"General");
91 t = conf->readNumEntry(
"TimerDelay", 5) * 1000;
96 #include "kmtimer.moc"