Sude d430af63d0 Support XDG Base Directory Specification
Configuration files and cookies are now stored in "$XDG_CONFIG_HOME/lgogdownloader"
if $XDG_CONFIG_HOME is not set it will use "$HOME/.config/lgogdownloader"

XML files are now stored in "$XDG_CACHE_HOME/lgogdownloader/xml"
if $XDG_CACHE_HOME is not set it will use "$HOME/.cache/lgogdownloader/xml"
2013-12-11 11:27:53 +02:00

55 lines
1.5 KiB
C++

/* 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
* http://www.wtfpl.net/ for more details. */
#ifndef CONFIG_H__
#define CONFIG_H__
#include <iostream>
#include <curl/curl.h>
class Config
{
public:
Config() {};
virtual ~Config() {};
bool bVerbose;
bool bRemoteXML;
bool bCover;
bool bUpdateCheck;
bool bDownload;
bool bList;
bool bListDetails;
bool bLogin;
bool bRepair;
bool bInstallers;
bool bExtras;
bool bPatches;
bool bLanguagePacks;
bool bUnicode; // use Unicode in console output
bool bColor; // use colors
bool bVerifyPeer;
bool bCheckOrphans;
bool bCheckStatus;
bool bDuplicateHandler;
std::string sGameRegex;
std::string sDirectory;
std::string sXMLFile;
std::string sXMLDirectory;
std::string sToken;
std::string sSecret;
std::string sVersionString;
std::string sConfigDirectory;
std::string sCookiePath;
std::string sConfigFilePath;
unsigned int iInstallerType;
unsigned int iInstallerLanguage;
size_t iChunkSize;
curl_off_t iDownloadRate;
long int iTimeout;
};
#endif // CONFIG_H__