+// -*- C++ -*-
/**
* \file Timeout.h
* Copyright 2001 LyX Team
#ifndef TIMEOUT_H
#define TIMEOUT_H
-#include <config.h>
-
#ifdef __GNUG__
#pragma interface
#endif
CONTINUOUS
};
///
- Timeout();
- ///
Timeout(unsigned int msec, Type = ONETIME);
///
~Timeout();
+ /// Is the timer running?
+ bool running() const;
/// start the timer
void start();
/// stop the timer
Timeout & setTimeout(unsigned int msec);
private:
+ ///
struct Pimpl;
+ ///
friend struct Pimpl;
/// implementation
Pimpl * pimpl_;
-
/// one-shot or repeating
Type type;
/// timeout value in milliseconds