AromaUpdater/source/utils/DownloadUtils.h

15 lines
340 B
C
Raw Normal View History

2022-11-11 12:02:22 +01:00
#pragma once
#include <cstdint>
2022-11-11 12:02:22 +01:00
#include <string>
class DownloadUtils {
public:
static bool Init();
2022-11-11 12:02:22 +01:00
static void Deinit();
static int DownloadFileToBuffer(const std::string &url, std::string &outBuffer, int &responseCodeOut, int &errorOut, std::string &errorTextOut, float *progress);
2022-11-11 12:02:22 +01:00
private:
static bool libInitDone;
};