29 lines
585 B
C
29 lines
585 B
C
|
#ifndef XSTEAM_CURL_H
|
||
|
#define XSTEAM_CURL_H
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <QString>
|
||
|
#include <QDir>
|
||
|
#include <QFile>
|
||
|
#include <iostream>
|
||
|
#include "3rdparty/curl/include/curl/curl.h"
|
||
|
#include "3rdparty/curl/include/curl/easy.h"
|
||
|
|
||
|
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);
|
||
|
private:
|
||
|
void init_curl();
|
||
|
CURL *curl;
|
||
|
CURLcode curl_res;
|
||
|
};
|
||
|
#endif
|