]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/Timeout_pimpl.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / Timeout_pimpl.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/Timeout_pimpl.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  * \author John Levon
9  *
10  * Full author contact details are available in file CREDITS
11  */
12 #ifndef TIMEOUTPIMPL_H
13 #define TIMEOUTPIMPL_H
14
15 #include "frontends/Timeout.h"
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 /**
22  * This class executes the callback when the timeout expires
23  * using XForms mechanisms
24  */
25 struct Timeout::Pimpl {
26 public:
27         ///
28         Pimpl(Timeout * owner_);
29         /// Is the timer running?
30         bool running() const;
31         /// start the timer
32         void start();
33         /// stop the timer
34         void stop();
35         /// reset
36         void reset();
37
38 private:
39         /// the owning timer
40         Timeout * owner_;
41         /// xforms id
42         int timeout_id;
43 };
44
45 #endif