usbloadergx/source/network/ImageDownloader.h
dimok321 973d8b2005 *Fixed compile error
*Converted every 4 spaces to a tab to make the source consistent on those
2011-07-25 22:28:22 +00:00

35 lines
792 B
C++

#ifndef IMAGE_DOWNLOADER_H_
#define IMAGE_DOWNLOADER_H_
#include <vector>
#include <string>
#include "network/http.h"
class ImageDownloader
{
public:
static void DownloadImages();
private:
void Start();
void SetChoices(int c) { choices = c; }
void FindMissingImages();
void FindMissing(const char *writepath, const char *downloadURL, const char *backupURL, const char *progressTitle);
int DownloadProcess(int TotalDownloadCount);
struct block DownloadImage(const char * url, const char * gameID);
void CreateCSVLog();
struct ImageLink
{
std::string gameID;
const char *downloadURL;
const char *backupURL;
const char *writepath;
const char *progressTitle;
};
int choices;
u32 MissingImagesCount;
std::vector<ImageLink> MissingImages;
};
#endif