mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 04:17:43 +00:00
1e39473100
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4281 a592a061-630c-0410-9148-cb99ea01b6c8
44 lines
713 B
C++
44 lines
713 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file xforms/Timeout_pimpl.h
|
|
* Copyright 2001 LyX Team
|
|
* Read COPYING
|
|
*
|
|
* \author Lars Gullik Bjønnes, larsbj@lyx.org
|
|
* \author John Levon, moz@compsoc.man.ac.uk
|
|
*/
|
|
#ifndef TIMEOUTPIMPL_H
|
|
#define TIMEOUTPIMPL_H
|
|
|
|
#include "frontends/Timeout.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
/**
|
|
* This class executes the callback when the timeout expires
|
|
* using XForms mechanisms
|
|
*/
|
|
struct Timeout::Pimpl {
|
|
public:
|
|
///
|
|
Pimpl(Timeout * owner_);
|
|
/// Is the timer running?
|
|
bool running() const;
|
|
/// 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
|