lgogdownloader/include/config.h

84 lines
2.3 KiB
C
Raw Normal View History

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>
#include "blacklist.h"
2013-03-15 21:46:16 +01:00
class Config
{
public:
Config() {};
virtual ~Config() {};
bool bVerbose;
bool bRemoteXML;
bool bCover;
2013-03-15 21:46:16 +01:00
bool bUpdateCheck;
bool bDownload;
bool bList;
bool bListDetails;
bool bLogin;
bool bRepair;
bool bInstallers;
bool bExtras;
bool bPatches;
bool bLanguagePacks;
2014-03-29 00:51:39 +01:00
bool bDLC;
bool bUnicode; // use Unicode in console output
bool bColor; // use colors
bool bVerifyPeer;
bool bCheckStatus;
bool bDuplicateHandler;
bool bSaveConfig;
bool bResetConfig;
2014-02-13 09:05:16 +01:00
bool bReport;
2014-02-23 02:16:10 +01:00
bool bSubDirectories;
bool bUseCache;
bool bUpdateCache;
2015-03-19 08:50:50 +01:00
bool bSaveSerials;
2013-03-15 21:46:16 +01:00
std::string sGameRegex;
std::string sDirectory;
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;
std::string sConfigDirectory;
2013-03-15 21:46:16 +01:00
std::string sCookiePath;
std::string sConfigFilePath;
std::string sBlacklistFilePath;
std::string sOrphanRegex;
std::string sCoverList;
std::string sReportFilePath;
std::string sInstallersSubdir;
std::string sExtrasSubdir;
std::string sPatchesSubdir;
std::string sLanguagePackSubdir;
std::string sDLCSubdir;
std::string sGameSubdir;
std::string sLanguagePriority;
std::string sPlatformPriority;
std::vector<unsigned int> vLanguagePriority;
std::vector<unsigned int> vPlatformPriority;
2013-03-15 21:46:16 +01:00
unsigned int iInstallerType;
unsigned int iInstallerLanguage;
int iRetries;
int iWait;
int iCacheValid;
2013-03-15 21:46:16 +01:00
size_t iChunkSize;
curl_off_t iDownloadRate;
long int iTimeout;
Blacklist blacklist;
2013-03-15 21:46:16 +01:00
};
#endif // CONFIG_H__