Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
235:593108b3d555 | 236:4d461ef7d424 |
---|---|
13 | 13 |
14 class GetThread : public QThread { | 14 class GetThread : public QThread { |
15 Q_OBJECT | 15 Q_OBJECT |
16 | 16 |
17 public: | 17 public: |
18 GetThread(const std::string& u, const std::vector<std::string>& h = {}) { | 18 GetThread(const std::string& u, const std::vector<std::string>& h = {}, QObject* parent = nullptr) : QThread(parent) { |
19 url = u; | 19 url = u; |
20 headers = h; | 20 headers = h; |
21 } | 21 } |
22 | 22 |
23 signals: | 23 signals: |
34 | 34 |
35 class PostThread : public QThread { | 35 class PostThread : public QThread { |
36 Q_OBJECT | 36 Q_OBJECT |
37 | 37 |
38 public: | 38 public: |
39 PostThread(const std::string& u, const std::string& d, const std::vector<std::string>& h = {}) { | 39 PostThread(const std::string& u, const std::string& d, const std::vector<std::string>& h = {}, QObject* parent = nullptr) : QThread(parent) { |
40 url = u; | 40 url = u; |
41 data = d; | 41 data = d; |
42 headers = h; | 42 headers = h; |
43 } | 43 } |
44 | 44 |