DoomseekerFilePaths Class Reference

Static class responsible for retrieving paths to data files used by Doomseeker. More...

#include <doomseekerfilepaths.h>

Static Public Member Functions

static QString cacerts ()
 
static QString ini ()
 
static QString ip2cDatabase ()
 
static QString ip2cDatabaseAny ()
 
static QString ircIni ()
 
static QString passwordIni ()
 
static QString tempServerConfig ()
 
static QString updatePackagesStorageDir ()
 

Static Public Attributes

static const QString CACERTS_FILENAME = "cacerts.pem"
 
static const QString INI_FILENAME = "doomseeker.ini"
 
static const QString IP2C_DATABASE_FILENAME = "IpToCountry.dat"
 
static const QString IP2C_QT_SEARCH_PATH = DATA_SEARCH_PREFIX + ":" + IP2C_DATABASE_FILENAME
 
static const QString IRC_INI_FILENAME = "doomseeker-irc.ini"
 
static const QString PASSWORD_INI_FILENAME = "doomseeker-password.ini"
 
static DataPathspDataPaths = nullptr
 
static const QString TEMP_SERVER_CONFIG_FILENAME = "tmpserver.cfg"
 

Detailed Description

Static class responsible for retrieving paths to data files used by Doomseeker.

This uses a static instance of DataPaths class through pDataPaths member, which should be specified during init phase.

Definition at line 39 of file doomseekerfilepaths.h.

Member Function Documentation

QString DoomseekerFilePaths::ip2cDatabase ( )
static

This always points to the location of the locally downloaded database regardless if the file exists or not.

Definition at line 73 of file doomseekerfilepaths.cpp.

QString DoomseekerFilePaths::ip2cDatabaseAny ( )
static

This is any IP2C database available in the order of usual loading preference.

Returns
The return value can vary depending on where in the file system the file resides. If it's nowhere to be found, empty string is returned.

Definition at line 62 of file doomseekerfilepaths.cpp.

Member Data Documentation

const QString DoomseekerFilePaths::IP2C_QT_SEARCH_PATH = DATA_SEARCH_PREFIX + ":" + IP2C_DATABASE_FILENAME
static
Deprecated:
not used anymore; delete

Definition at line 46 of file doomseekerfilepaths.h.


The documentation for this class was generated from the following files: