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
20 #include <boost/signals/signal0.hpp>
23 * This class executes the callback when the timeout expires.
29 ONETIME, //< one-shot timer
30 CONTINUOUS //< repeating
33 Timeout(unsigned int msec, Type = ONETIME);
36 /// Is the timer running?
44 /// signal emitted on timer expiry
45 boost::signal0<void> timeout;
48 /// set the timer type
49 Timeout & setType(Type t);
50 /// set the timeout value
51 Timeout & setTimeout(unsigned int msec);
60 /// one-shot or repeating
62 /// timeout value in milliseconds
63 unsigned int timeout_ms;