mirror-chatterino2/src/singletons/pathmanager.hpp

36 lines
776 B
C++
Raw Normal View History

#pragma once
#include <QString>
namespace chatterino {
namespace singletons {
class PathManager
{
public:
PathManager(int argc, char **argv);
// %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
2018-01-19 22:45:33 +01:00
QString cacheFolderPath;
// Default folder for logs. %APPDATA%/chatterino/Logs or ExecutablePath/Logs for portable mode
QString logsFolderPath;
2018-04-20 00:15:57 +02:00
QString appPathHash;
bool createFolder(const QString &folderPath);
2018-05-28 18:25:19 +02:00
bool isPortable();
private:
bool portable;
};
} // namespace singletons
} // namespace chatterino