summaryrefslogtreecommitdiff
path: root/client/red_client.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2009-11-09 18:05:40 +0200
committerYaniv Kamay <ykamay@redhat.com>2009-11-09 19:06:44 +0200
commitec34856feadfb56971bc06f7da7ada67394440a8 (patch)
tree9ef91c6a0ca613d500ddc9dda829cf1c8c62545d /client/red_client.h
parent4c72ba138c391c27d15e23c349c87e23fd813ac6 (diff)
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.h8
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;