diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-22 01:32:14 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-22 01:32:14 +0200 |
commit | 17d203d2fcb93673163cde0eda6e28b38007f910 (patch) | |
tree | 1016b09a1b6f22d65856987a7992db4c1ea46675 /client/UpdatedConfig.cpp | |
parent | e555b3102f7be659f53bc24e81bcba90d97aad81 (diff) |
DOwnload/Delete file list request and parsing. FIX bug while reading other configs
Diffstat (limited to 'client/UpdatedConfig.cpp')
-rw-r--r-- | client/UpdatedConfig.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/UpdatedConfig.cpp b/client/UpdatedConfig.cpp index e999d7e..6c69f12 100644 --- a/client/UpdatedConfig.cpp +++ b/client/UpdatedConfig.cpp @@ -70,9 +70,9 @@ void UpdatedConfig::update() { client->SendRequest(SslClient::FirewallList); } - else if (! (updateStatus & (1 << SslClient::UploadList))) + else if (! (updateStatus & (1 << SslClient::DownloadList))) { - client->SendRequest(SslClient::UploadList); + client->SendRequest(SslClient::DownloadList); } else if (! (updateStatus & (1 << SslClient::DeleteList))) { @@ -125,11 +125,11 @@ void UpdatedConfig::gotServerReply(SslClient::RequestType &type, QByteArray &con case SslClient::FirewallList: ParseFirewalls(confdata.constData()); break; - case SslClient::UploadList: - Logger::Debug("UploadList: %s\n", confdata.constData()); + case SslClient::DownloadList: + ParseDownloadList(confdata.constData()); break; case SslClient::DeleteList: - Logger::Debug("DeleteList: %s\n", confdata.constData()); + ParseDeleteList(confdata.constData()); break; default: Logger::Warn("Unknown reply type: %x\n", type); |