mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
2f0844ebd9
Implemented scuffed logging settings page Add helper function to PathManager to create an arbitrary folder
31 lines
567 B
C++
31 lines
567 B
C++
#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;
|
|
QString cacheFolderPath;
|
|
|
|
// Logs
|
|
QString logsFolderPath;
|
|
QString channelsLogsFolderPath;
|
|
QString whispersLogsFolderPath;
|
|
QString mentionsLogsFolderPath;
|
|
|
|
bool createFolder(const QString &folderPath);
|
|
};
|
|
|
|
} // namespace singletons
|
|
} // namespace chatterino
|