X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FTimeout.h;h=28b00333be1e09c09000cc2f3d668ed1674afa70;hb=adaad6e2e53630263c64b42f75c170a463a106a1;hp=62118b20ff3a691aa730f457068024583291ca3b;hpb=fe8bce66763174f67f8546cb51008e2bc8863144;p=lyx.git diff --git a/src/support/Timeout.h b/src/support/Timeout.h index 62118b20ff..28b00333be 100644 --- a/src/support/Timeout.h +++ b/src/support/Timeout.h @@ -1,6 +1,6 @@ // -*- C++ -*- /** - * \file qtTimeout.h + * \file Timeout.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * @@ -48,42 +48,16 @@ public: /// set the timeout value Timeout & setTimeout(unsigned int msec); - /** Base class for the GUI implementation. - It must be public so that C callback functions can access its - daughter classes. - */ - class Impl - { - public: - /// - Impl(Timeout & owner) : owner_(owner) {} - /// - virtual ~Impl() {} - /// Is the timer running? - virtual bool running() const = 0; - /// start the timer - virtual void start() = 0; - /// stop the timer - virtual void stop() = 0; - /// reset - virtual void reset() = 0; - - protected: - /// - void emit() { owner_.emit(); } - /// - unsigned int timeout_ms() const { return owner_.timeout_ms; } - - private: - /// - Timeout & owner_; - }; - private: + /// noncopyable + Timeout(Timeout const &); + void operator=(Timeout const &); + /// + class Impl; /// friend class Impl; /// - boost::scoped_ptr const pimpl_; + Impl * const pimpl_; /// one-shot or repeating Type type; /// timeout value in milliseconds