diff options
author | Yaniv Kamay <ykamay@redhat.com> | 2009-12-28 01:15:08 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-12-28 12:38:58 +0200 |
commit | 68fb44012982897ea883b336c56d0e8c12ddce0d (patch) | |
tree | 209556db04762b5f5f7581af4f51970f04e8d836 /client/red_client.h | |
parent | 659be313a43fc741ed9decd95178efbeedf2c4fd (diff) | |
download | spice-68fb44012982897ea883b336c56d0e8c12ddce0d.tar.gz spice-68fb44012982897ea883b336c56d0e8c12ddce0d.tar.xz spice-68fb44012982897ea883b336c56d0e8c12ddce0d.zip |
client: add GUI infrastructure + functional login dialog
Diffstat (limited to 'client/red_client.h')
-rw-r--r-- | client/red_client.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/red_client.h b/client/red_client.h index fde958f2..a98d2d2f 100644 --- a/client/red_client.h +++ b/client/red_client.h @@ -131,8 +131,6 @@ public: RedClient(Application& application); ~RedClient(); - void init(const char* host, int port, int sport, const char *password, bool auto_display_res); - void register_channel_factory(ChannelFactory& factory); virtual void connect(); @@ -143,9 +141,11 @@ public: 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();} - const char* get_host() { return _host.c_str();} + void set_target(const std::string&, int port, int sport); + void set_password(const std::string& password) { _password = password;} + void set_auto_display_res(bool auto_display_res) { _auto_display_res = auto_display_res;} + const std::string& get_password() { return _password;} + const std::string& get_host() { return _host;} int get_port() { return _port;} int get_sport() { return _sport;} virtual uint32_t get_connection_id() { return _connection_id;} @@ -202,10 +202,10 @@ private: private: Application& _application; - std::string _password; std::string _host; int _port; int _sport; + std::string _password; uint32_t _connection_id; uint32_t _mouse_mode; Mutex _notify_lock; |