]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/Timeout_pimpl.h
small cleanup, doxygen, formatting changes
[lyx.git] / src / frontends / kde / Timeout_pimpl.h
1 /**
2  * \file Timeout_pimpl.h
3  * Copyright 2001 LyX Team
4  * Read COPYING
5  *
6  * \author John Levon
7  */
8 #ifndef TIMEOUTPIMPL_H
9 #define TIMEOUTPIMPL_H
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "frontends/Timeout.h"
18
19 #include <sigc++/signal_system.h>
20
21 #include <qobject.h> 
22 // stupid Qt
23 #undef emit
24  
25 /**
26  * This class executes the callback when the timeout expires
27  * using Qt mechanisms
28  */
29 struct Timeout::Pimpl : QObject {
30 public:
31         ///
32         Pimpl(Timeout *owner_);
33         /// start the timer
34         void start();
35         /// stop the timer
36         void stop();
37         /// reset
38         void reset();
39
40 protected:
41         /// slot
42         virtual void timerEvent(QTimerEvent *);
43 private:
44         /// the owning timer
45         Timeout * owner_;
46         /// xforms id
47         int timeout_id;
48 };
49
50 #endif