]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Timeout.h
fix typo that put too many include paths for most people
[lyx.git] / src / frontends / Timeout.h
index f9c54cc940ab9c049bb4fa91e9f099f62cbe9853..5c0061abbcd945cd487a4b75a8891532e800ae12 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file Timeout.h
  * Copyright 2001 LyX Team
@@ -9,8 +10,6 @@
 #ifndef TIMEOUT_H
 #define TIMEOUT_H
 
-#include <config.h>
-
 #ifdef __GNUG__
 #pragma interface
 #endif
@@ -30,11 +29,11 @@ public:
                CONTINUOUS
        };
        ///
-       Timeout();
-       ///
        Timeout(unsigned int msec, Type = ONETIME);
        ///
        ~Timeout();
+       /// Is the timer running?
+       bool running() const;
        /// start the timer
        void start();
        /// stop the timer
@@ -51,11 +50,12 @@ public:
        Timeout & setTimeout(unsigned int msec);
 
 private:
+       ///
        struct Pimpl;
+       ///
        friend struct Pimpl;
        /// implementation
        Pimpl * pimpl_;
-
        /// one-shot or repeating
        Type type;
        /// timeout value in milliseconds