diff options
Diffstat (limited to 'server/include/event_subscription_repeated.h')
-rw-r--r-- | server/include/event_subscription_repeated.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/include/event_subscription_repeated.h b/server/include/event_subscription_repeated.h index fc0d857..309c9ab 100644 --- a/server/include/event_subscription_repeated.h +++ b/server/include/event_subscription_repeated.h @@ -25,6 +25,8 @@ #include "event_subscription_base.h" #include <boost/asio.hpp> +class client; + typedef boost::asio::basic_deadline_timer<boost::posix_time::ptime> deadline_timer; class event_subscription_repeated : public event_subscription_base @@ -34,8 +36,14 @@ public: ~event_subscription_repeated(); void timer_handler(const boost::system::error_code &e); + + void start(); + const client* get_owner(); + void set_owner(client* c); + private: deadline_timer *timer; + client *owner = nullptr; }; #endif // EVENT_SUBSCRIPTION_PERIODIC_H |