4 * Copyright 2001 LyX Team
7 * \author Lars Gullik Bjønnes
18 #include <boost/signals/signal0.hpp>
21 * This class executes the callback when the timeout expires.
27 ONETIME, //< one-shot timer
28 CONTINUOUS //< repeating
31 Timeout(unsigned int msec, Type = ONETIME);
34 /// Is the timer running?
42 /// signal emitted on timer expiry
43 boost::signal0<void> timeout;
46 /// set the timer type
47 Timeout & setType(Type t);
48 /// set the timeout value
49 Timeout & setTimeout(unsigned int msec);
58 /// one-shot or repeating
60 /// timeout value in milliseconds
61 unsigned int timeout_ms;