diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-08-06 04:30:27 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-08-06 04:30:27 +0300 |
commit | 1461988ab8387f86d929cbba70bc4839447693f6 (patch) | |
tree | 1142409a754415abc965f2bf8563596beb4b108b /client-qt/udm-client-qt/client_session.h | |
parent | a1a9b18e23e222e324bdcc2eccb9e8b6d9c6d00f (diff) |
protocol:
removed login field in auth_info
added password hash algorithm selection support to auth_info
client-qt:
basic implementation of connect widget (working)
Diffstat (limited to 'client-qt/udm-client-qt/client_session.h')
-rw-r--r-- | client-qt/udm-client-qt/client_session.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |