]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/m_spanningtree/timesynctimer.h
Fix for bug #199 (Feature request) submitted by owine. Ended up adding an extra param...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / timesynctimer.h
1 #ifndef __TIMESYNC_H__
2 #define __TIMESYNC_H__
3
4 #include "timer.h"
5
6 class ModuleSpanningTree;
7 class InspIRCd;
8
9 /** Create a timer which recurs every second, we inherit from InspTimer.
10  * InspTimer is only one-shot however, so at the end of each Tick() we simply
11  * insert another of ourselves into the pending queue :)
12  */
13 class TimeSyncTimer : public InspTimer
14 {
15  private:
16         InspIRCd *Instance;
17         ModuleSpanningTree *Module;
18  public:
19         TimeSyncTimer(InspIRCd *Instance, ModuleSpanningTree *Mod);
20         virtual void Tick(time_t TIME);
21 };
22
23 #endif