2024-10-11 19:40:20 +08:00
|
|
|
#ifndef XSTEAM_CURL_H
|
|
|
|
#define XSTEAM_CURL_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <QString>
|
|
|
|
#include <QDir>
|
|
|
|
#include <QFile>
|
|
|
|
#include <iostream>
|
2024-10-12 19:56:01 +08:00
|
|
|
#include "curl/curl.h"
|
|
|
|
#include "curl/easy.h"
|
2024-10-11 19:40:20 +08:00
|
|
|
typedef enum{
|
|
|
|
GET_INFO,
|
|
|
|
DOWNLOAD
|
|
|
|
}CURL_MODE;
|
|
|
|
|
|
|
|
class xsteam_curl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
xsteam_curl();
|
|
|
|
~xsteam_curl();
|
|
|
|
std::string get_steam_id_info(std::string,std::string _c_uid);
|
|
|
|
bool get_steam_header_ico(std::string,std::string _c_uid);
|
2024-10-20 19:24:21 +08:00
|
|
|
bool get_url_state(std::string url);
|
2024-10-11 19:40:20 +08:00
|
|
|
private:
|
|
|
|
void init_curl();
|
|
|
|
CURL *curl;
|
|
|
|
CURLcode curl_res;
|
|
|
|
};
|
|
|
|
#endif
|