From 17d203d2fcb93673163cde0eda6e28b38007f910 Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Tue, 22 Nov 2011 01:32:14 +0200 Subject: DOwnload/Delete file list request and parsing. FIX bug while reading other configs --- client/UpdatedConfig.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'client/UpdatedConfig.cpp') 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); -- cgit v1.2.3