]> git.lyx.org Git - lyx.git/blobdiff - src/Timeout.h
Dekels tabular/textinset patches
[lyx.git] / src / Timeout.h
index d4c538a327d982ff0bcae7b02c27d0ea63587ffe..9cecc49d7a43e8b615f829323d5b783ebf1a1ca5 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef TIMEOUT_H
 #define TIMEOUT_H
 
+#include <config.h>
+
 #ifdef __GNUG__
 #pragma interface
 #endif
@@ -30,13 +32,15 @@ class Timeout {
 public:
        ///
        enum Type {
+               ///
                ONETIME,
+               ///
                CONTINOUS
        };
        ///
        Timeout();
        ///
-       Timeout(int msec, Type = ONETIME);
+       Timeout(unsigned int msec, Type = ONETIME);
        ///
        ~Timeout();
        ///
@@ -50,14 +54,14 @@ public:
        ///
        void emit();
        ///
-       void setType(Type t);
+       Timeout & setType(Type t);
        ///
-       void setTimeout(int msec);
+       Timeout & setTimeout(unsigned int msec);
 private:
        ///
        Type type;
        ///
-       int timeout_ms;
+       unsigned int timeout_ms;
        ///
        int timeout_id;
 };