]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/Timeout_pimpl.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / Timeout_pimpl.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/Timeout_pimpl.h
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.
7  *
8  * \author Lars Gullik Bjønnes
9  * \author John Levon
10  *
11  * Full author contact details are available in file CREDITS
12  */
13 #ifndef TIMEOUTPIMPL_H
14 #define TIMEOUTPIMPL_H
15
16 #include "frontends/Timeout.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         /// Is the timer running?
31         bool running() const;
32         /// start the timer
33         void start();
34         /// stop the timer
35         void stop();
36         /// reset
37         void reset();
38
39 private:
40         /// the owning timer
41         Timeout * owner_;
42         /// xforms id
43         int timeout_id;
44 };
45
46 #endif