From 1461988ab8387f86d929cbba70bc4839447693f6 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 6 Aug 2015 04:30:27 +0300 Subject: protocol: removed login field in auth_info added password hash algorithm selection support to auth_info client-qt: basic implementation of connect widget (working) --- client-qt/udm-client-qt/client_session.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client-qt/udm-client-qt/client_session.h') diff --git a/client-qt/udm-client-qt/client_session.h b/client-qt/udm-client-qt/client_session.h index 192d15b..df75640 100644 --- a/client-qt/udm-client-qt/client_session.h +++ b/client-qt/udm-client-qt/client_session.h @@ -40,6 +40,7 @@ class client_session : public QObject Q_OBJECT public: explicit client_session(QObject *parent = 0, boost::asio::io_service *io_service = nullptr); + ~client_session(); // boost::asio::io_service &io_service(); tcp::socket& socket(); @@ -47,9 +48,10 @@ public: signals: void client_connected(bool success, QString error_text); //we are in threads, no links here void server_message_received(server_msg msg); //we are in threads, no links here + void terminate_thread(); public slots: - void client_connect(QString host, int port); + void client_connect(QString host, QString password, int port); void run_io_service(); void send_message(client_msg &msg); @@ -60,6 +62,7 @@ private: char *recv_data_; boost::asio::io_service &io_service_; tcp::socket socket_; + QString pasword; }; #endif // CLIENT_SESSION_H -- cgit v1.2.3