diff ui/downloader.h @ 910:eaed02defe6a

More SSLConnection refactoring. Fixes curl downloader.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 18 Aug 2014 18:51:33 +0200
parents d1c951b3012d
children 2949f1842955
line wrap: on
line diff
--- a/ui/downloader.h	Thu Aug 14 11:24:13 2014 +0200
+++ b/ui/downloader.h	Mon Aug 18 18:51:33 2014 +0200
@@ -85,42 +85,6 @@
 
     SSLConnection *mSSLConnection;
 
-    /** @brief get the last modified header of a resource.
-     *
-     * Connection should be established beforehand.
-     * Modifies the error state.
-     *
-     * @param[in] resource The resource to check
-     *
-     * @returns the last modified date or a null datetime in case of errors
-     */
-    QDateTime getLastModifiedHeader(const QString &resource);
-
-    /** @brief Download resource
-     *
-     * Download a resource with the established connection.
-     * Modifies the error state.
-     *
-     * @param[in] resource the resource to download
-     * @param[in] filename where the file should be saved.
-     * @param[in] maxSize maximum amount of bytes to download
-     *
-     * @returns True if the download was successful.
-     */
-    bool downloadFile(const QString &resource, const QString &filename,
-                      size_t maxSize);
-    /**
-     * @brief parses the Headers of a repsonse.
-     *
-     * This removes the headers from the byte array passed as
-     * parameter.
-     *
-     * @param[inout] data: The response to parse.
-     *
-     * @returns: A map of the header fields. Or an empty map on error.
-     */
-    QMap<QString, QString> parseHeaders(QByteArray *data);
-
 Q_SIGNALS:
     /**
      * @brief software update is available

http://wald.intevation.org/projects/trustbridge/