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