29 lines
581 B
C++
29 lines
581 B
C++
#ifndef XSTEAM_CURL_H
|
|
#define XSTEAM_CURL_H
|
|
|
|
#include <stdio.h>
|
|
#include <QString>
|
|
#include <QDir>
|
|
#include <QFile>
|
|
#include <iostream>
|
|
#include "curl/curl.h"
|
|
#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);
|
|
bool get_url_state(std::string url);
|
|
private:
|
|
void init_curl();
|
|
CURL *curl;
|
|
CURLcode curl_res;
|
|
};
|
|
#endif |