Public Member Functions | Private Attributes

CallBack Class Reference

#include <modules.h>

Inherits Timer.

Inherited by BanDataPurger, DataBasePurger, DefConTimeout, ExpireCallback, ExpireCallback, ModuleProxyScan::ConnectionTimeout, MyHTTPProvider, and TempBan.

Collaboration diagram for CallBack:
Collaboration graph
[legend]

Public Member Functions

 CallBack (Module *mod, long time_from_now, time_t now=Anope::CurTime, bool repeating=false)
virtual ~CallBack ()

Private Attributes

Modulem

Detailed Description

Class used for callbacks within modules. These are identical to Timers hwoever they will be cleaned up automatically when a module is unloaded, and Timers will not.

Definition at line 1149 of file modules.h.


Constructor & Destructor Documentation

CallBack::CallBack ( Module mod,
long  time_from_now,
time_t  now = Anope::CurTime,
bool  repeating = false 
)

Definition at line 105 of file module.cpp.

CallBack::~CallBack (  )  [virtual]

Definition at line 109 of file module.cpp.

References Module::callbacks, and m.


Field Documentation

Module* CallBack::m [private]

Definition at line 1152 of file modules.h.

Referenced by ~CallBack().


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