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 lyx::frontend::GTimeout(*this)),
22 type(t), timeout_ms(msec)
28 GTimeout::GTimeout(Timeout & owner)
29 : Timeout::Impl(owner)
34 void GTimeout::reset()
40 bool GTimeout::running() const
46 void GTimeout::start()
48 if (conn_.connected()) {
49 lyxerr << "Timeout::start: already running!" << std::endl;
53 conn_ = Glib::signal_timeout().connect(
54 SigC::slot(*this, >imeout::timeoutEvent),
68 bool GTimeout::timeoutEvent()
71 return false; // discontinue emitting timeouts.
74 } // namespace frontend