Add a PathManager that takes care of all paths and creating folders

Move all path/folder-related code from SettingManager to PathManager
This commit is contained in:
Rasmus Karlsson
2018-01-05 02:23:49 +01:00
parent c3770707aa
commit 346950d7b7
7 changed files with 92 additions and 35 deletions
+22
View File
@@ -0,0 +1,22 @@
#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;
};
} // namespace singletons
} // namespace chatterino