]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/Timeout_pimpl.h
fix problem with nroff detection, remove dead code with old floats, bogus message...
[lyx.git] / src / frontends / gnome / Timeout_pimpl.h
1 // -*- C++ -*-
2 /**
3  * \file Timeout_pimpl.h
4  * Copyright 2001 LyX Team
5  * Read COPYING
6  *
7  * \author Baruch Even
8  */
9 #ifndef TIMEOUTPIMPL_H
10 #define TIMEOUTPIMPL_H
11
12 #include "frontends/Timeout.h"
13 #include "glib.h" // for gint
14
15 #include <sigc++/signal_system.h>
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 /**
22  * This class executes the callback when the timeout expires
23  * using Gnome mechanisms
24  */
25 struct Timeout::Pimpl : public SigC::Object {
26 public:
27         ///
28         Pimpl(Timeout * owner_);
29         /// start the timer
30         void start();
31         /// stop the timer
32         void stop();
33         /// reset
34         void reset();
35
36 public:
37         /// The timeout signal, this gets called when the timeout passed.
38         gint timeoutEvent();
39 private:
40         /// the owning timer
41         Timeout * owner_;
42         /// Timer connection
43         SigC::Connection conn_;
44 };
45
46 #endif