mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(settings): const getters
This commit is contained in:
parent
f00b9008e6
commit
e2f9d2cfe8
|
@ -626,7 +626,7 @@ uint32_t Settings::makeProfileId(const QString& profile)
|
||||||
@brief Get path to directory, where the settings files are stored.
|
@brief Get path to directory, where the settings files are stored.
|
||||||
@return Path to settings directory, ends with a directory separator.
|
@return Path to settings directory, ends with a directory separator.
|
||||||
*/
|
*/
|
||||||
QString Settings::getSettingsDirPath()
|
QString Settings::getSettingsDirPath() const
|
||||||
{
|
{
|
||||||
QMutexLocker locker{&bigLock};
|
QMutexLocker locker{&bigLock};
|
||||||
if (makeToxPortable)
|
if (makeToxPortable)
|
||||||
|
@ -649,7 +649,7 @@ QString Settings::getSettingsDirPath()
|
||||||
@brief Get path to directory, where the application data are stored.
|
@brief Get path to directory, where the application data are stored.
|
||||||
@return Path to application data, ends with a directory separator.
|
@return Path to application data, ends with a directory separator.
|
||||||
*/
|
*/
|
||||||
QString Settings::getAppDataDirPath()
|
QString Settings::getAppDataDirPath() const
|
||||||
{
|
{
|
||||||
QMutexLocker locker{&bigLock};
|
QMutexLocker locker{&bigLock};
|
||||||
if (makeToxPortable)
|
if (makeToxPortable)
|
||||||
|
@ -674,7 +674,7 @@ QString Settings::getAppDataDirPath()
|
||||||
@brief Get path to directory, where the application cache are stored.
|
@brief Get path to directory, where the application cache are stored.
|
||||||
@return Path to application cache, ends with a directory separator.
|
@return Path to application cache, ends with a directory separator.
|
||||||
*/
|
*/
|
||||||
QString Settings::getAppCacheDirPath()
|
QString Settings::getAppCacheDirPath() const
|
||||||
{
|
{
|
||||||
QMutexLocker locker{&bigLock};
|
QMutexLocker locker{&bigLock};
|
||||||
if (makeToxPortable)
|
if (makeToxPortable)
|
||||||
|
|
|
@ -135,9 +135,9 @@ public:
|
||||||
public:
|
public:
|
||||||
static Settings& getInstance();
|
static Settings& getInstance();
|
||||||
static void destroyInstance();
|
static void destroyInstance();
|
||||||
QString getSettingsDirPath();
|
QString getSettingsDirPath() const;
|
||||||
QString getAppDataDirPath();
|
QString getAppDataDirPath() const;
|
||||||
QString getAppCacheDirPath();
|
QString getAppCacheDirPath() const;
|
||||||
|
|
||||||
void createSettingsDir();
|
void createSettingsDir();
|
||||||
void createPersonal(QString basename);
|
void createPersonal(QString basename);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user