Mercurial > trustbridge
comparison ui/downloader.h @ 54:09cd242d8443
Split out Header parsing into it's own function
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 17 Mar 2014 14:48:05 +0000 |
parents | c6125d73faf4 |
children | 17e1c8f37d72 |
comparison
equal
deleted
inserted
replaced
53:0aacc291c04b | 54:09cd242d8443 |
---|---|
97 * | 97 * |
98 * @returns True if the download was successful. | 98 * @returns True if the download was successful. |
99 */ | 99 */ |
100 bool downloadFile(const QString &resource, const QString &filename, | 100 bool downloadFile(const QString &resource, const QString &filename, |
101 size_t maxSize); | 101 size_t maxSize); |
102 /** | |
103 * @brief parses the Headers of a repsonse. | |
104 * | |
105 * This removes the headers from the byte array passed as | |
106 * parameter. | |
107 * | |
108 * @param[inout] data: The response to parse. | |
109 * | |
110 * @returns: A map of the header fields. Or an empty map on error. | |
111 */ | |
112 QMap<QString, QString> parseHeaders(QByteArray *data); | |
102 | 113 |
103 Q_SIGNALS: | 114 Q_SIGNALS: |
104 /** | 115 /** |
105 * @brief software update is available | 116 * @brief software update is available |
106 */ | 117 */ |