3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Michael Koziarski
10 * Full author contact details are available in file CREDITS.
20 Timeout::Timeout(unsigned int msec, Type t)
21 : pimpl_(new GTimeout(*this)), type(t), timeout_ms(msec)
25 GTimeout::GTimeout(Timeout & owner)
26 : Timeout::Impl(owner)
31 void GTimeout::reset()
37 bool GTimeout::running() const
43 void GTimeout::start()
45 if (conn_.connected()) {
46 lyxerr << "Timeout::start: already running!" << std::endl;
50 conn_ = Glib::signal_timeout().connect(
51 SigC::slot(*this, >imeout::timeoutEvent),
65 bool GTimeout::timeoutEvent()
68 return false; // discontinue emitting timeouts.