-/* +------------------------------------+\r * | Inspire Internet Relay Chat Daemon |\r * +------------------------------------+\r *\r * InspIRCd: (C) 2002-2007 InspIRCd Development Team\r * See: http://www.inspircd.org/wiki/index.php/Credits\r *\r * This program is free but copyrighted software; see\r * the file COPYING for details.\r *\r * ---------------------------------------------------\r */\r\r#ifndef __TIMESYNC_H__\r#define __TIMESYNC_H__\r\r#include "timer.h"\r\rclass ModuleSpanningTree;\rclass SpanningTreeUtilities;\rclass InspIRCd;\r\r/** Create a timer which recurs every second, we inherit from InspTimer.\r * InspTimer is only one-shot however, so at the end of each Tick() we simply\r * insert another of ourselves into the pending queue :)\r */\rclass TimeSyncTimer : public InspTimer\r{\r private:\r InspIRCd *Instance;\r ModuleSpanningTree *Module;\r public:\r TimeSyncTimer(InspIRCd *Instance, ModuleSpanningTree *Mod);\r virtual void Tick(time_t TIME);\r};\r\rclass CacheRefreshTimer : public InspTimer\r{\r private:\r InspIRCd *Instance;\r SpanningTreeUtilities *Utils;\r public:\r CacheRefreshTimer(InspIRCd *Instance, SpanningTreeUtilities* Util);\r virtual void Tick(time_t TIME);\r};\r\r#endif\r
\ No newline at end of file
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __TIMESYNC_H__
+#define __TIMESYNC_H__
+
+#include "timer.h"
+
+class ModuleSpanningTree;
+class SpanningTreeUtilities;
+class InspIRCd;
+
+/** Create a timer which recurs every second, we inherit from InspTimer.
+ * InspTimer is only one-shot however, so at the end of each Tick() we simply
+ * insert another of ourselves into the pending queue :)
+ */
+class TimeSyncTimer : public InspTimer
+{
+ private:
+ InspIRCd *Instance;
+ ModuleSpanningTree *Module;
+ public:
+ TimeSyncTimer(InspIRCd *Instance, ModuleSpanningTree *Mod);
+ virtual void Tick(time_t TIME);
+};
+
+class CacheRefreshTimer : public InspTimer
+{
+ private:
+ InspIRCd *Instance;
+ SpanningTreeUtilities *Utils;
+ public:
+ CacheRefreshTimer(InspIRCd *Instance, SpanningTreeUtilities* Util);
+ virtual void Tick(time_t TIME);
+};
+
+#endif