]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/Timeout_pimpl.h
Switch from SigC signals to boost::signals
[lyx.git] / src / frontends / xforms / Timeout_pimpl.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/Timeout_pimpl.h
4  * Copyright 2001 LyX Team
5  * Read COPYING
6  *
7  * \author Lars Gullik Bjønnes, larsbj@lyx.org
8  * \author John Levon, moz@compsoc.man.ac.uk
9  */
10 #ifndef TIMEOUTPIMPL_H
11 #define TIMEOUTPIMPL_H
12
13 #include "frontends/Timeout.h"
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 /**
20  * This class executes the callback when the timeout expires
21  * using XForms mechanisms
22  */
23 struct Timeout::Pimpl {
24 public:
25         ///
26         Pimpl(Timeout * owner_);
27         /// Is the timer running?
28         bool running() const;
29         /// start the timer
30         void start();
31         /// stop the timer
32         void stop();
33         /// reset
34         void reset();
35
36 private:
37         /// the owning timer
38         Timeout * owner_;
39         /// xforms id
40         int timeout_id;
41 };
42
43 #endif