2013-03-15 21:46:16 +01:00
|
|
|
/* This program is free software. It comes without any warranty, to
|
|
|
|
* the extent permitted by applicable law. You can redistribute it
|
|
|
|
* and/or modify it under the terms of the Do What The Fuck You Want
|
|
|
|
* To Public License, Version 2, as published by Sam Hocevar. See
|
2013-03-24 22:56:57 +01:00
|
|
|
* http://www.wtfpl.net/ for more details. */
|
2013-03-15 21:46:16 +01:00
|
|
|
|
|
|
|
#ifndef CONFIG_H__
|
|
|
|
#define CONFIG_H__
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
class Config
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Config() {};
|
|
|
|
virtual ~Config() {};
|
|
|
|
bool bVerbose;
|
|
|
|
bool bNoRemoteXML;
|
|
|
|
bool bNoCover;
|
|
|
|
bool bUpdateCheck;
|
|
|
|
bool bHelp;
|
|
|
|
bool bDownload;
|
|
|
|
bool bList;
|
|
|
|
bool bListDetails;
|
|
|
|
bool bLogin;
|
|
|
|
bool bRepair;
|
|
|
|
bool bNoInstallers;
|
|
|
|
bool bNoExtras;
|
2013-05-15 00:28:37 +02:00
|
|
|
bool bNoPatches;
|
2013-03-15 21:46:16 +01:00
|
|
|
bool bNoUnicode; // don't use Unicode in console output
|
|
|
|
bool bNoColor; // don't use colors
|
2013-04-25 11:05:17 +02:00
|
|
|
bool bVerifyPeer;
|
2013-03-15 21:46:16 +01:00
|
|
|
std::string sGameRegex;
|
|
|
|
std::string sDirectory;
|
|
|
|
std::string sXMLFile;
|
|
|
|
std::string sXMLDirectory;
|
|
|
|
std::string sToken;
|
|
|
|
std::string sSecret;
|
|
|
|
std::string sVersionString;
|
|
|
|
std::string sHome;
|
|
|
|
std::string sCookiePath;
|
|
|
|
std::string sConfigFilePath;
|
|
|
|
unsigned int iInstallerType;
|
|
|
|
unsigned int iInstallerLanguage;
|
|
|
|
size_t iChunkSize;
|
|
|
|
curl_off_t iDownloadRate;
|
2013-06-10 14:15:08 +02:00
|
|
|
long int iTimeout;
|
2013-03-15 21:46:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONFIG_H__
|