Qt: use simple curl wrapper to avoid some pitfalls

This commit is contained in:
Megamouse 2020-03-22 17:49:33 +01:00
parent 3c63db93ed
commit b447e6f55d
9 changed files with 74 additions and 38 deletions

View file

@ -0,0 +1,20 @@
#pragma once
#include <QObject>
#ifndef CURL_STATICLIB
#define CURL_STATICLIB
#endif
#include <curl/curl.h>
class curl_handle : public QObject
{
private:
CURL* m_curl = nullptr;
public:
curl_handle(QObject* parent = nullptr);
~curl_handle();
CURL* get_curl();
};