Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
networkactions.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <functional>
4 
5 #include <QNetworkReply>
6 
7 #include "network/downloader.h"
8 
9 class QUrl;
10 
11 namespace geometrize
12 {
13 
14 namespace network
15 {
16 
22 void downloadImage(const QUrl& url, const std::function<void(network::Downloader* self, QNetworkReply::NetworkError error)>& onComplete);
23 
29 void downloadWebpage(const QUrl& url, const std::function<void(network::Downloader* self, QNetworkReply::NetworkError error)>& onComplete);
30 
31 }
32 
33 }
void downloadImage(const QUrl &url, const std::function< void(network::Downloader *self, QNetworkReply::NetworkError error)> &onComplete)
downloadImage Downloads an image over the network.
Definition: networkactions.cpp:13
void downloadWebpage(const QUrl &url, const std::function< void(network::Downloader *self, QNetworkReply::NetworkError error)> &onComplete)
downloadWebpage Downloads a whole webpage over the network.
Definition: networkactions.cpp:18