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.
21 Timeout::Timeout(unsigned int msec, Type t)
22 : pimpl_(new lyx::frontend::GTimeout(*this)),
23 type(t), timeout_ms(msec)
29 GTimeout::GTimeout(Timeout & owner)
30 : Timeout::Impl(owner)
35 void GTimeout::reset()
41 bool GTimeout::running() const
47 void GTimeout::start()
49 if (conn_.connected()) {
50 lyxerr << "Timeout::start: already running!" << std::endl;
54 conn_ = Glib::signal_timeout().connect(
55 sigc::mem_fun(*this, >imeout::timeoutEvent),
69 bool GTimeout::timeoutEvent()
72 return false; // discontinue emitting timeouts.
75 } // namespace frontend