diff options
Diffstat (limited to 'src/FbTk/Timer.cc')
-rw-r--r-- | src/FbTk/Timer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc index cb9ac59..13bfc05 100644 --- a/src/FbTk/Timer.cc +++ b/src/FbTk/Timer.cc | |||
@@ -59,7 +59,7 @@ Timer::Timer():m_timing(false), m_once(false), m_interval(0) { | |||
59 | 59 | ||
60 | } | 60 | } |
61 | 61 | ||
62 | Timer::Timer(RefCount<Command<void> > &handler): | 62 | Timer::Timer(const RefCount<Slot<void> > &handler): |
63 | m_handler(handler), | 63 | m_handler(handler), |
64 | m_timing(false), | 64 | m_timing(false), |
65 | m_once(false), | 65 | m_once(false), |
@@ -90,7 +90,7 @@ void Timer::setTimeout(unsigned int secs, unsigned int usecs) { | |||
90 | m_timeout.tv_usec = usecs; | 90 | m_timeout.tv_usec = usecs; |
91 | } | 91 | } |
92 | 92 | ||
93 | void Timer::setCommand(RefCount<Command<void> > &cmd) { | 93 | void Timer::setCommand(const RefCount<Slot<void> > &cmd) { |
94 | m_handler = cmd; | 94 | m_handler = cmd; |
95 | } | 95 | } |
96 | 96 | ||
@@ -122,7 +122,7 @@ void Timer::makeEndTime(timeval &tm) const { | |||
122 | 122 | ||
123 | void Timer::fireTimeout() { | 123 | void Timer::fireTimeout() { |
124 | if (m_handler) | 124 | if (m_handler) |
125 | m_handler->execute(); | 125 | (*m_handler)(); |
126 | } | 126 | } |
127 | 127 | ||
128 | void Timer::updateTimers(int fd) { | 128 | void Timer::updateTimers(int fd) { |
@@ -284,7 +284,7 @@ Command<void> *DelayedCmd::parse(const std::string &command, | |||
284 | 284 | ||
285 | REGISTER_COMMAND_PARSER(delay, DelayedCmd::parse, void); | 285 | REGISTER_COMMAND_PARSER(delay, DelayedCmd::parse, void); |
286 | 286 | ||
287 | DelayedCmd::DelayedCmd(RefCount<Command<void> > &cmd, unsigned int timeout) { | 287 | DelayedCmd::DelayedCmd(const RefCount<Slot<void> > &cmd, unsigned int timeout) { |
288 | timeval to; // defaults to 200ms | 288 | timeval to; // defaults to 200ms |
289 | to.tv_sec = timeout/1000000; | 289 | to.tv_sec = timeout/1000000; |
290 | to.tv_usec = timeout % 1000000; | 290 | to.tv_usec = timeout % 1000000; |