2018-01-05 02:23:49 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
namespace singletons {
|
|
|
|
|
|
|
|
class PathManager
|
|
|
|
{
|
|
|
|
PathManager() = default;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static PathManager &getInstance();
|
|
|
|
|
|
|
|
bool init(int argc, char **argv);
|
|
|
|
|
|
|
|
QString settingsFolderPath;
|
|
|
|
QString customFolderPath;
|
2018-01-19 22:45:33 +01:00
|
|
|
QString cacheFolderPath;
|
2018-01-28 14:23:55 +01:00
|
|
|
|
|
|
|
// Logs
|
|
|
|
QString logsFolderPath;
|
|
|
|
QString channelsLogsFolderPath;
|
|
|
|
QString whispersLogsFolderPath;
|
|
|
|
QString mentionsLogsFolderPath;
|
|
|
|
|
|
|
|
bool createFolder(const QString &folderPath);
|
2018-01-05 02:23:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace singletons
|
|
|
|
} // namespace chatterino
|