summaryrefslogtreecommitdiff
path: root/client-qt/udm-client-qt/udm_main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-31 20:45:06 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-31 20:45:06 +0300
commit4b4002115d6c7b5c5113d1e2e6e9025565e1c9bb (patch)
tree4e4ecc6d26052bb5f50acd0c1a9260aceb5479fd /client-qt/udm-client-qt/udm_main.cpp
parent12eba4d75931c5e48dac70b1a7dbad7861d059df (diff)
protocol:
download struct must have module_name field server: core: implemented SERVER_DOWNLOADS_LIST_REPLY (draft) added global downloads list client: using std::string instead of QString to avoid unnecessary conversions
Diffstat (limited to 'client-qt/udm-client-qt/udm_main.cpp')
-rw-r--r--client-qt/udm-client-qt/udm_main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/client-qt/udm-client-qt/udm_main.cpp b/client-qt/udm-client-qt/udm_main.cpp
index 3f94450..91cfb10 100644
--- a/client-qt/udm-client-qt/udm_main.cpp
+++ b/client-qt/udm-client-qt/udm_main.cpp
@@ -167,23 +167,26 @@ void udm_main::server_message_received(server_msg msg)
{
if(msg.auth_reply().status())
{
- auth_token = msg.auth_reply().auth_token().c_str();
+ auth_token = msg.auth_reply().auth_token();
//TODO: update client status
lbl_state->setText(tr("State") + ": " + tr("Connected") + ", " + tr("Authenticated"));
//request modules and settings here
{
client_msg msg;
msg.set_type(CLIENT_MSG_TYPE::CLIENT_CORE_INFO_REQUEST);
+ msg.set_auth_token(auth_token);
session->send_message(msg);
}
{
client_msg msg;
msg.set_type(CLIENT_MSG_TYPE::CLIENT_MODULES_REQUEST);
+ msg.set_auth_token(auth_token);
session->send_message(msg);
}
{
client_msg msg;
msg.set_type(CLIENT_MSG_TYPE::CLIENT_DOWNLOADS_LIST_REQUEST);
+ msg.set_auth_token(auth_token);
session->send_message(msg);
}
}