diff options
author | Yaniv Kamay <ykamay@redhat.com> | 2009-12-26 17:24:37 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-12-28 12:36:46 +0200 |
commit | 2dbaf8c00c28770e48cbfc6ab3300000118d22ec (patch) | |
tree | b9ccb04e291927b67dffb42680225a258f1f8b2d /client/application.h | |
parent | 62248734bdf23d70e3ec16d1881d7c96ca9f85db (diff) | |
download | spice-2dbaf8c00c28770e48cbfc6ab3300000118d22ec.tar.gz spice-2dbaf8c00c28770e48cbfc6ab3300000118d22ec.tar.xz spice-2dbaf8c00c28770e48cbfc6ab3300000118d22ec.zip |
client: smiplify DisconnectedEvent
Diffstat (limited to 'client/application.h')
-rw-r--r-- | client/application.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/application.h b/client/application.h index 757ee3a2..c2b81e6c 100644 --- a/client/application.h +++ b/client/application.h @@ -44,13 +44,10 @@ public: class DisconnectedEvent: public Event { public: + DisconnectedEvent() : _error_code (SPICEC_ERROR_CODE_SUCCESS) {} + DisconnectedEvent(int error_code) : _error_code (error_code) {} virtual void response(AbstractProcessLoop& events_loop); -}; -class ConnectionErrorEvent: public Event { -public: - ConnectionErrorEvent(int error_code) : _error_code (error_code) {} - virtual void response(AbstractProcessLoop& events_loop); private: int _error_code; }; @@ -152,6 +149,7 @@ public: virtual void on_monitors_change(); virtual void on_display_mode_change(); void on_connected(); + void on_disconnected(int spice_error_code); void on_disconnecting(); void on_visibility_start(int screen_id); |