Mercurial > minori
diff include/core/http.h @ 236:4d461ef7d424
HUGE UPDATE: convert build system to autotools
why? because cmake sucks :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 19 Jan 2024 00:24:02 -0500 |
parents | 2f5a9247e501 |
children | 862d0d8619f6 |
line wrap: on
line diff
--- a/include/core/http.h Tue Jan 16 15:22:29 2024 -0500 +++ b/include/core/http.h Fri Jan 19 00:24:02 2024 -0500 @@ -15,7 +15,7 @@ Q_OBJECT public: - GetThread(const std::string& u, const std::vector<std::string>& h = {}) { + GetThread(const std::string& u, const std::vector<std::string>& h = {}, QObject* parent = nullptr) : QThread(parent) { url = u; headers = h; } @@ -36,7 +36,7 @@ Q_OBJECT public: - PostThread(const std::string& u, const std::string& d, const std::vector<std::string>& h = {}) { + PostThread(const std::string& u, const std::string& d, const std::vector<std::string>& h = {}, QObject* parent = nullptr) : QThread(parent) { url = u; data = d; headers = h;