Back to index

easystroke  0.5.5.1
Public Member Functions | Private Member Functions | Private Attributes
TimeoutWatcher Class Reference

#include <var.h>

Inheritance diagram for TimeoutWatcher:
Inheritance graph
[legend]
Collaboration diagram for TimeoutWatcher:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TimeoutWatcher (int ms_)
virtual void notify ()
void execute_now ()
template<class T >
void watch (Out< T > &v)

Private Member Functions

virtual void timeout ()=0
bool remove_timeout ()
void set_timeout (int ms)

Private Attributes

int ms

Detailed Description

Definition at line 147 of file var.h.


Constructor & Destructor Documentation

TimeoutWatcher::TimeoutWatcher ( int  ms_) [inline]

Definition at line 150 of file var.h.

: ms(ms_) {}

Member Function Documentation

void TimeoutWatcher::execute_now ( ) [inline]

Definition at line 152 of file var.h.

                          {
              if (remove_timeout())
                     timeout();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void TimeoutWatcher::notify ( ) [inline, virtual]

Implements Base.

Definition at line 151 of file var.h.

Here is the call graph for this function:

bool Timeout::remove_timeout ( ) [inline, inherited]

Definition at line 32 of file util.h.

                             {
              if (c) {
                     c->disconnect();
                     c = 0;
                     return true;
              }
              return false;
       }

Here is the caller graph for this function:

void Timeout::set_timeout ( int  ms) [inline, inherited]

Definition at line 40 of file util.h.

                                {
              remove_timeout();
              connection = Glib::signal_timeout().connect(sigc::mem_fun(*this, &Timeout::to), ms);
              c = &connection;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void Timeout::timeout ( ) [protected, pure virtual, inherited]

Implemented in Modifiers, ReloadTrace, ActionDBWatcher, WaitForPongHandler, PrefDB, Win, Fire, and Shape.

Here is the caller graph for this function:

template<class T >
void Watcher::watch ( Out< T > &  v) [inline, inherited]

Definition at line 144 of file var.h.

{ v.connect(this); }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

int TimeoutWatcher::ms [private]

Definition at line 148 of file var.h.


The documentation for this class was generated from the following file: