// -*- C++ -*-
+/* This file is part of
+ * ======================================================
+ *
+ * LyX, The Document Processor
+ *
+ * Copyright 1995 Matthias Ettrich
+ * Copyright 1995-2000 The LyX Team.
+ *
+ * ====================================================== */
+
#ifndef TIMEOUT_H
#define TIMEOUT_H
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include <sigc++/signal_system.h>
#ifdef SIGC_CXX_NAMESPACES
public:
///
enum Type {
+ ///
ONETIME,
+ ///
CONTINOUS
};
///
Timeout();
///
- Timeout(int msec, Type = ONETIME);
+ Timeout(unsigned int msec, Type = ONETIME);
///
~Timeout();
///
///
void emit();
///
- void setType(Type t);
+ Timeout & setType(Type t);
///
- void setTimeout(int msec);
+ Timeout & setTimeout(unsigned int msec);
private:
///
Type type;
///
- int timeout_ms;
+ unsigned int timeout_ms;
///
int timeout_id;
};