]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/Timeout_pimpl.h
Remove unneeded files, we have switched to use the libglade and there is no
[lyx.git] / src / frontends / gnome / Timeout_pimpl.h
1 /**
2  * \file Timeout_pimpl.h
3  * Copyright 2001 LyX Team
4  * Read COPYING
5  *
6  * \author Baruch Even
7  */
8 #ifndef TIMEOUTPIMPL_H
9 #define TIMEOUTPIMPL_H
10
11 #include <config.h>
12
13 #include "frontends/Timeout.h"
14 #include "glib.h" // for gint
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 Gnome mechanisms
25  */
26 struct Timeout::Pimpl : public SigC::Object {
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 public:
38         /// The timeout signal, this gets called when the timeout passed.
39         gint timeoutEvent();
40 private:
41         /// the owning timer
42         Timeout * owner_;
43         /// Timer connection
44         SigC::Connection conn_;
45 };
46
47 #endif