Back to index

easystroke  0.5.5.1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Timeout Class Reference

#include <util.h>

Inheritance diagram for Timeout:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Timeout ()
bool remove_timeout ()
void set_timeout (int ms)
virtual ~Timeout ()

Protected Member Functions

virtual void timeout ()=0

Private Member Functions

bool to ()

Private Attributes

sigc::connection * c
sigc::connection connection

Detailed Description

Definition at line 21 of file util.h.


Constructor & Destructor Documentation

Timeout::Timeout ( ) [inline]

Definition at line 28 of file util.h.

: c(0) {}
virtual Timeout::~Timeout ( ) [inline, virtual]

Definition at line 45 of file util.h.

Here is the call graph for this function:


Member Function Documentation

bool Timeout::remove_timeout ( ) [inline]

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]

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]

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

Here is the caller graph for this function:

bool Timeout::to ( ) [inline, private]

Definition at line 26 of file util.h.

{ c = NULL; timeout(); return false; }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

sigc::connection* Timeout::c [private]

Definition at line 23 of file util.h.

sigc::connection Timeout::connection [private]

Definition at line 24 of file util.h.


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