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