2 * \file qt2/Timeout_pimpl.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
17 #include "Timeout_pimpl.h"
22 Timeout::Pimpl::Pimpl(Timeout * owner)
23 : owner_(owner), timeout_id(-1)
28 void Timeout::Pimpl::timerEvent(QTimerEvent *)
34 void Timeout::Pimpl::reset()
41 bool Timeout::Pimpl::running() const
43 return timeout_id != -1;
47 void Timeout::Pimpl::start()
50 lyxerr << "Timeout::start: already running!" << endl;
51 timeout_id = startTimer(owner_->timeout_ms);
55 void Timeout::Pimpl::stop()