4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS
17 #include <boost/signals/signal0.hpp>
20 * This class executes the callback when the timeout expires.
26 ONETIME, //< one-shot timer
27 CONTINUOUS //< repeating
30 Timeout(unsigned int msec, Type = ONETIME);
33 /// Is the timer running?
41 /// signal emitted on timer expiry
42 boost::signal0<void> timeout;
45 /// set the timer type
46 Timeout & setType(Type t);
47 /// set the timeout value
48 Timeout & setTimeout(unsigned int msec);
57 /// one-shot or repeating
59 /// timeout value in milliseconds
60 unsigned int timeout_ms;