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>
|
|
|
|
|
2014-06-20 17:30:40 +02:00
|
|
|
#include "blacklist.h"
|
|
|
|
|
2013-03-15 21:46:16 +01:00
|
|
|
class Config
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Config() {};
|
|
|
|
virtual ~Config() {};
|
|
|
|
bool bVerbose;
|
2013-11-19 11:47:10 +01:00
|
|
|
bool bRemoteXML;
|
|
|
|
bool bCover;
|
2013-03-15 21:46:16 +01:00
|
|
|
bool bUpdateCheck;
|
|
|
|
bool bDownload;
|
|
|
|
bool bList;
|
|
|
|
bool bListDetails;
|
|
|
|
bool bLogin;
|
|
|
|
bool bRepair;
|
2013-11-19 11:47:10 +01:00
|
|
|
bool bInstallers;
|
|
|
|
bool bExtras;
|
|
|
|
bool bPatches;
|
|
|
|
bool bLanguagePacks;
|
2014-03-29 00:51:39 +01:00
|
|
|
bool bDLC;
|
2013-11-14 14:40:59 +01:00
|
|
|
bool bUnicode; // use Unicode in console output
|
|
|
|
bool bColor; // use colors
|
2013-04-25 11:05:17 +02:00
|
|
|
bool bVerifyPeer;
|
2013-11-14 14:40:59 +01:00
|
|
|
bool bCheckStatus;
|
2013-11-18 12:19:02 +01:00
|
|
|
bool bDuplicateHandler;
|
2014-02-03 18:28:48 +01:00
|
|
|
bool bSaveConfig;
|
|
|
|
bool bResetConfig;
|
2014-02-13 09:05:16 +01:00
|
|
|
bool bReport;
|
2014-02-23 02:16:10 +01:00
|
|
|
bool bSubDirectories;
|
2014-10-16 10:05:57 +02:00
|
|
|
bool bUseCache;
|
|
|
|
bool bUpdateCache;
|
2015-03-19 08:50:50 +01:00
|
|
|
bool bSaveSerials;
|
2015-03-28 11:52:41 +01:00
|
|
|
bool bPlatformDetection;
|
2015-05-13 16:13:30 +02:00
|
|
|
bool bShowWishlist;
|
2013-03-15 21:46:16 +01:00
|
|
|
std::string sGameRegex;
|
|
|
|
std::string sDirectory;
|
2014-10-16 10:05:57 +02:00
|
|
|
std::string sCacheDirectory;
|
2013-03-15 21:46:16 +01:00
|
|
|
std::string sXMLFile;
|
|
|
|
std::string sXMLDirectory;
|
|
|
|
std::string sToken;
|
|
|
|
std::string sSecret;
|
|
|
|
std::string sVersionString;
|
2013-12-11 10:27:53 +01:00
|
|
|
std::string sConfigDirectory;
|
2013-03-15 21:46:16 +01:00
|
|
|
std::string sCookiePath;
|
|
|
|
std::string sConfigFilePath;
|
2014-06-20 17:30:40 +02:00
|
|
|
std::string sBlacklistFilePath;
|
2013-12-22 12:02:48 +01:00
|
|
|
std::string sOrphanRegex;
|
2014-08-28 15:00:24 +02:00
|
|
|
std::string sCoverList;
|
2014-09-17 11:41:01 +02:00
|
|
|
std::string sReportFilePath;
|
2014-09-19 21:46:03 +02:00
|
|
|
std::string sInstallersSubdir;
|
|
|
|
std::string sExtrasSubdir;
|
|
|
|
std::string sPatchesSubdir;
|
|
|
|
std::string sLanguagePackSubdir;
|
|
|
|
std::string sDLCSubdir;
|
|
|
|
std::string sGameSubdir;
|
2015-04-11 15:42:10 +02:00
|
|
|
std::string sFileIdString;
|
|
|
|
std::string sLanguagePriority;
|
|
|
|
std::string sPlatformPriority;
|
|
|
|
std::vector<unsigned int> vLanguagePriority;
|
|
|
|
std::vector<unsigned int> vPlatformPriority;
|
2014-10-25 17:57:04 +02:00
|
|
|
|
2013-03-15 21:46:16 +01:00
|
|
|
unsigned int iInstallerType;
|
|
|
|
unsigned int iInstallerLanguage;
|
2014-02-26 13:59:23 +01:00
|
|
|
int iRetries;
|
2014-06-10 11:16:49 +02:00
|
|
|
int iWait;
|
2014-10-16 10:05:57 +02:00
|
|
|
int iCacheValid;
|
2013-03-15 21:46:16 +01:00
|
|
|
size_t iChunkSize;
|
|
|
|
curl_off_t iDownloadRate;
|
2013-06-10 14:15:08 +02:00
|
|
|
long int iTimeout;
|
2014-06-20 17:30:40 +02:00
|
|
|
Blacklist blacklist;
|
2013-03-15 21:46:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONFIG_H__
|