]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Timeout.C
another compile fix from herbert
[lyx.git] / src / frontends / Timeout.C
index 960e834ddf550b88a14679ba373086714713631f..59b639479cd289f48cf85711cdd6ef94e9245cf0 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \file Timeout.C
- * Copyright 2001 LyX Team
- * Read COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Lars Gullik Bjønnes
  * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 #ifdef __GNUG__
 #pragma implementation
 
 #include "Timeout_pimpl.h"
 
-Timeout::Timeout()
-       : type(ONETIME), timeout_ms(0)
-{
-       pimpl_ = new Pimpl(this);
-}
-
 
 Timeout::Timeout(unsigned int msec, Type t)
        : type(t), timeout_ms(msec)
@@ -38,6 +34,12 @@ Timeout::~Timeout()
 }
 
 
+bool Timeout::running() const
+{
+       return pimpl_->running();
+}
+
+
 void Timeout::start()
 {
        pimpl_->start();
@@ -57,7 +59,7 @@ void Timeout::restart()
 void Timeout::emit()
 {
        pimpl_->reset();
-       timeout.emit();
+       timeout();
        if (type == CONTINUOUS)
                pimpl_->start();
 }