22 #include <sigc++/signal.h>
24 #include <glibmm/main.h>
40 const Glib::RefPtr<Glib::MainContext>& main_context);
49 void resume () { m_suspended =
false; }
89 const Glib::RefPtr<Glib::MainContext>& main_context = Glib::MainContext::get_default());
91 sigc::connection
connect (
const sigc::slot<void>& slot);
94 {
return m_signal.size (); }
109 const Glib::RefPtr<Glib::MainContext>& main_context = Glib::MainContext::get_default());
112 sigc::connection
connect (
const sigc::slot<void, bool>& slot);
115 {
return m_blink_signal.size (); }
sigc::connection connect(const sigc::slot< void, bool > &slot)
BlinkTimer(unsigned int interval, const Glib::RefPtr< Glib::MainContext > &main_context=Glib::MainContext::get_default())
virtual bool on_elapsed()
virtual unsigned int connection_count() const
sigc::signal< void, bool > m_blink_signal
sigc::connection connect(const sigc::slot< void > &slot)
virtual bool on_elapsed()
StandardTimer(unsigned int interval, const Glib::RefPtr< Glib::MainContext > &main_context=Glib::MainContext::get_default())
sigc::signal< void > m_signal
virtual unsigned int connection_count() const
const Glib::RefPtr< Glib::MainContext > m_main_context
GSource * m_timeout_source
unsigned int m_timeout_interval
virtual unsigned int connection_count() const =0
static gboolean _timeout_handler(void *data)
unsigned int get_interval() const
void set_interval(unsigned int new_interval)
virtual bool on_elapsed()=0
Timer(unsigned int interval, const Glib::RefPtr< Glib::MainContext > &main_context)