]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/m_spanningtree/cachetimer.h
Update all wiki links to point to the new wiki. This was done automatically with...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / cachetimer.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef __TIMESYNC_H__
15 #define __TIMESYNC_H__
16
17 #include "timer.h"
18
19 class ModuleSpanningTree;
20 class SpanningTreeUtilities;
21 class InspIRCd;
22
23 /** Create a timer which recurs every second, we inherit from Timer.
24  * Timer is only one-shot however, so at the end of each Tick() we simply
25  * insert another of ourselves into the pending queue :)
26  */
27 class CacheRefreshTimer : public Timer
28 {
29  private:
30         InspIRCd *Instance;
31         SpanningTreeUtilities *Utils;
32  public:
33         CacheRefreshTimer(InspIRCd *Instance, SpanningTreeUtilities* Util);
34         virtual void Tick(time_t TIME);
35 };
36
37 #endif