* use canonical filepath cache in cxx indexer * made constructors of FilePath explicit * use FilePath at more places instead of string * forward declares FilePath wherever possible
27 lines
535 B
C++
27 lines
535 B
C++
#ifndef USER_PATHS_H
|
|
#define USER_PATHS_H
|
|
|
|
#include <string>
|
|
|
|
#include "utility/file/FilePath.h"
|
|
|
|
class UserPaths
|
|
{
|
|
public:
|
|
static FilePath getUserDataPath();
|
|
static void setUserDataPath(const FilePath& path);
|
|
|
|
static FilePath getSampleProjectsPath();
|
|
static void setSampleProjectsPath(const FilePath& path);
|
|
|
|
static FilePath getAppSettingsPath();
|
|
static FilePath getWindowSettingsPath();
|
|
static FilePath getLogPath();
|
|
|
|
private:
|
|
static FilePath s_userDataPath;
|
|
static FilePath s_sampleProjectsPath;
|
|
};
|
|
|
|
#endif // USER_PATHS_H
|