6 #include "doomseekerfilepaths.h"
8 DataPaths* DoomseekerFilePaths::pDataPaths = NULL;
10 const QString DoomseekerFilePaths::IP2C_DATABASE_FILENAME =
"IpToCountry.csv";
11 const QString DoomseekerFilePaths::IP2C_QT_SEARCH_PATH =
"data:" + IP2C_DATABASE_FILENAME;
12 const QString DoomseekerFilePaths::TEMP_SERVER_CONFIG_FILENAME =
"tmpserver.cfg";
13 const QString DoomseekerFilePaths::INI_FILENAME =
"doomseeker.ini";
14 const QString DoomseekerFilePaths::IRC_INI_FILENAME =
"doomseeker-irc.ini";
15 const QString DoomseekerFilePaths::PASSWORD_INI_FILENAME =
"doomseeker-password.ini";
18 QString DoomseekerFilePaths::ini()
23 QString DoomseekerFilePaths::ircIni()
28 QString DoomseekerFilePaths::ip2cDatabase()
33 QString DoomseekerFilePaths::joinIfNeitherEmpty(
const QString &left,
const QString &right)
35 if (left.trimmed().isEmpty() || right.trimmed().isEmpty())
39 return left +
"/" + right;
42 QString DoomseekerFilePaths::passwordIni()
47 QString DoomseekerFilePaths::tempServerConfig()
52 QString DoomseekerFilePaths::updatePackagesStorageDir()
QString programsDataDirectoryPath() const
Path to directory where this concrete application should store it's data.
Represents directories used by Doomseeker to store data.
QString localDataLocationPath(const QString &subpath=QString()) const
Path to the directory where large data should be saved.
QString programsDataSupportDirectoryPath() const
Allows switching from Preferences to Application Support on OS X.