]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/Timeout_pimpl.h
Added // -*- C++ -*- to the top of all files in controllers/ and xforms/
[lyx.git] / src / frontends / xforms / Timeout_pimpl.h
1 // -*- C++ -*-
2 /**
3  * \file Timeout_pimpl.h
4  * Copyright 2001 LyX Team
5  * Read COPYING
6  *
7  * \author Lars Gullik Bjønnes
8  * \author John Levon
9  */
10 #ifndef TIMEOUTPIMPL_H
11 #define TIMEOUTPIMPL_H
12
13 #include <config.h>
14
15 #include "frontends/Timeout.h"
16
17 #include <sigc++/signal_system.h>
18
19 #ifdef __GNUG__
20 #pragma interface
21 #endif
22
23 /**
24  * This class executes the callback when the timeout expires
25  * using XForms mechanisms
26  */
27 struct Timeout::Pimpl {
28 public:
29         ///
30         Pimpl(Timeout * owner_);
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