2001-06-13 14:33:31 +00:00
|
|
|
|
// -*- C++ -*-
|
2001-02-07 16:44:49 +00:00
|
|
|
|
/**
|
2002-03-11 22:47:41 +00:00
|
|
|
|
* \file xforms/Timeout_pimpl.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
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-02-07 16:44:49 +00:00
|
|
|
|
*/
|
|
|
|
|
#ifndef TIMEOUTPIMPL_H
|
|
|
|
|
#define TIMEOUTPIMPL_H
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
* using XForms mechanisms
|
|
|
|
|
*/
|
|
|
|
|
struct Timeout::Pimpl {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
Pimpl(Timeout * owner_);
|
2002-02-18 19:13:48 +00:00
|
|
|
|
/// Is the timer running?
|
|
|
|
|
bool running() const;
|
2001-02-07 16:44:49 +00:00
|
|
|
|
/// start the timer
|
|
|
|
|
void start();
|
|
|
|
|
/// stop the timer
|
|
|
|
|
void stop();
|
|
|
|
|
/// reset
|
|
|
|
|
void reset();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/// the owning timer
|
|
|
|
|
Timeout * owner_;
|
|
|
|
|
/// xforms id
|
|
|
|
|
int timeout_id;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|