summaryrefslogtreecommitdiff
path: root/p2pvr/lib/bindTimerTask.h
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/lib/bindTimerTask.h')
-rw-r--r--p2pvr/lib/bindTimerTask.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/p2pvr/lib/bindTimerTask.h b/p2pvr/lib/bindTimerTask.h
new file mode 100644
index 0000000..8c82680
--- /dev/null
+++ b/p2pvr/lib/bindTimerTask.h
@@ -0,0 +1,18 @@
+#ifndef BINDTIMERTASK_H
+#define BINDTIMERTASK_H
+
+#include <boost/function.hpp>
+#include <IceUtil/Timer.h>
+
+class BindTimerTask : public IceUtil::TimerTask {
+ public:
+ typedef boost::function<void()> Event;
+ BindTimerTask(const Event & event);
+
+ void runTimerTask();
+ private:
+ const Event event;
+};
+
+#endif
+