4 * Copyright 2001 LyX Team
5 * This file is part of LyX, the document processor.
6 * Licence details can be found in the file COPYING.
8 * \author Lars Gullik Bjønnes
11 * Full author contact details are available in file CREDITS
21 #include <boost/signals/signal0.hpp>
24 * This class executes the callback when the timeout expires.
30 ONETIME, //< one-shot timer
31 CONTINUOUS //< repeating
34 Timeout(unsigned int msec, Type = ONETIME);
37 /// Is the timer running?
45 /// signal emitted on timer expiry
46 boost::signal0<void> timeout;
49 /// set the timer type
50 Timeout & setType(Type t);
51 /// set the timeout value
52 Timeout & setTimeout(unsigned int msec);
61 /// one-shot or repeating
63 /// timeout value in milliseconds
64 unsigned int timeout_ms;