diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2009-11-09 18:05:40 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2010-01-03 17:19:35 +0200 |
commit | 9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976 (patch) | |
tree | 332e5869e46f42364c5ddc8b17af9c524387fc66 /client/red_client.h | |
parent | da98669691f5041d16d40bd6b8b794af3a822a7c (diff) | |
download | spice-9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976.tar.gz spice-9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976.tar.xz spice-9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976.zip |
spice client: remove timer interface from platform - use Application (via ProcessLoop interface).
Diffstat (limited to 'client/red_client.h')
-rw-r--r-- | client/red_client.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/client/red_client.h b/client/red_client.h index e22cefd9..04c800cc 100644 --- a/client/red_client.h +++ b/client/red_client.h @@ -112,6 +112,10 @@ public: } }; +class AgentTimer: public Timer { + virtual void response(AbstractProcessLoop& events_loop); +}; + typedef std::map< int, RedPeer::ConnectionOptions::Type> PeerConnectionOptMap; class RedClient: public RedChannel { @@ -131,6 +135,8 @@ public: virtual bool abort(); void push_event(Event* event); + void activate_interval_timer(Timer* timer, unsigned int millisec); + void deactivate_interval_timer(Timer* timer); void set_target(const char* host, uint16_t port, uint16_t sport); const char* get_password() { return _password.c_str();} @@ -206,7 +212,7 @@ private: uint8_t* _agent_msg_data; uint32_t _agent_msg_pos; uint32_t _agent_tokens; - TimerID _agent_timer; + AutoRef<AgentTimer> _agent_timer; PeerConnectionOptMap _con_opt_map; Migrate _migrate; |