From 918defcaea2b570a927a2884ce0e720b03e32d8a Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Thu, 1 Dec 2011 03:11:09 +0200 Subject: FIX file transfer; FIX packet parsing bug; + many various fixes and improvements --- client/DownloadClient.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'client/DownloadClient.h') diff --git a/client/DownloadClient.h b/client/DownloadClient.h index 5b75c2c..0e6c510 100644 --- a/client/DownloadClient.h +++ b/client/DownloadClient.h @@ -14,7 +14,7 @@ using std::vector; class QFile; -class DownloadClient: public SslClient +class DownloadClient: public SslClient { Q_OBJECT @@ -50,22 +50,14 @@ public: * it's quite unsuitable to iterate through( */ void Download(const vector > &files); - + signals: /** * @brief This signal is emitted when all files have been downloaded */ void downloadFinished(); -private slots: - void FileDataRecieved(SslClient::RequestType &type, QByteArray &confdata); - private: - /** - * @brief size of file data fragment - */ - static const int FRAGMENT_SIZE = 4096; - /** * @brief indicates that program is downloading file(s) right now */ @@ -90,6 +82,9 @@ private: * @brief start file-by-file downloading process */ void DoDownload(); + +private slots: + void FileDataRecieved(SslClient::RequestType &type, QByteArray &confdata); }; #endif -- cgit v1.2.3