mirror-chatterino2/src/singletons/pathmanager.hpp
Rasmus Karlsson ae26b835b6 Perform initial refactoring work
Things that were once singletons are no longer singletons, but are
instead stored in the "Application" singleton

Some singletons still remain, and some renaming/renamespacing is left
2018-04-27 22:11:19 +02:00

36 lines
775 B
C++

#pragma once
#include <QString>
namespace chatterino {
namespace singletons {
class PathManager
{
PathManager(int argc, char **argv);
friend class Application;
public:
// %APPDATA%/chatterino or ExecutablePath for portable mode
QString settingsFolderPath;
// %APPDATA%/chatterino/Custom or ExecutablePath/Custom for portable mode
QString customFolderPath;
// %APPDATA%/chatterino/Cache or ExecutablePath/Cache for portable mode
QString cacheFolderPath;
// Logs
QString logsFolderPath;
QString channelsLogsFolderPath;
QString whispersLogsFolderPath;
QString mentionsLogsFolderPath;
QString appPathHash;
bool createFolder(const QString &folderPath);
};
} // namespace singletons
} // namespace chatterino