2001-06-13 14:33:31 +00:00
|
|
|
|
// -*- C++ -*-
|
2001-02-07 16:44:49 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file Timeout_pimpl.h
|
|
|
|
|
* Copyright 2001 LyX Team
|
|
|
|
|
* Read COPYING
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author John Levon
|
|
|
|
|
*/
|
|
|
|
|
#ifndef TIMEOUTPIMPL_H
|
|
|
|
|
#define TIMEOUTPIMPL_H
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#include "frontends/Timeout.h"
|
|
|
|
|
|
|
|
|
|
#include <sigc++/signal_system.h>
|
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
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_);
|
|
|
|
|
/// 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
|