2001-06-13 14:33:31 +00:00
|
|
|
|
// -*- C++ -*-
|
2001-02-07 16:44:49 +00:00
|
|
|
|
/**
|
2003-02-22 18:01:16 +00:00
|
|
|
|
* \file xformsTimeout.h
|
2002-09-05 15:14:23 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-02-07 16:44:49 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author John Levon
|
2003-02-22 18:01:16 +00:00
|
|
|
|
* \author Angus Leeming
|
2002-09-05 14:10:50 +00:00
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-02-07 16:44:49 +00:00
|
|
|
|
*/
|
2003-02-22 18:01:16 +00:00
|
|
|
|
|
|
|
|
|
#ifndef XFORMSTIMEOUT_H
|
|
|
|
|
#define XFORMSTIMEOUT_H
|
2001-02-07 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
#include "frontends/Timeout.h"
|
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
2001-02-07 16:44:49 +00:00
|
|
|
|
/**
|
|
|
|
|
* This class executes the callback when the timeout expires
|
2003-02-22 18:01:16 +00:00
|
|
|
|
* using xforms mechanisms
|
2001-02-07 16:44:49 +00:00
|
|
|
|
*/
|
2003-02-22 18:01:16 +00:00
|
|
|
|
class xformsTimeout : public Timeout::Impl {
|
2001-02-07 16:44:49 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2003-02-22 18:01:16 +00:00
|
|
|
|
xformsTimeout(Timeout &);
|
|
|
|
|
///
|
|
|
|
|
virtual bool running() const;
|
|
|
|
|
///
|
|
|
|
|
virtual void start();
|
|
|
|
|
///
|
|
|
|
|
virtual void stop();
|
|
|
|
|
///
|
|
|
|
|
virtual void reset();
|
|
|
|
|
/// xforms callback function
|
|
|
|
|
void emitCB();
|
2001-02-07 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
private:
|
2003-02-22 18:01:16 +00:00
|
|
|
|
///
|
2001-02-07 16:44:49 +00:00
|
|
|
|
int timeout_id;
|
|
|
|
|
};
|
|
|
|
|
|
2003-02-22 18:01:16 +00:00
|
|
|
|
#endif // XFORMSTIMEOUT_H
|