You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/components/files/macospath.hpp

69 lines
1.4 KiB
C++

#ifndef COMPONENTS_FILES_MACOSPATH_H
#define COMPONENTS_FILES_MACOSPATH_H
#if defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__)
#include <filesystem>
/**
* \namespace Files
*/
namespace Files
{
/**
* \struct MacOsPath
*/
struct MacOsPath
{
MacOsPath(const std::string& application_name);
/**
* \brief Return path to the local directory.
*
* \return std::filesystem::path
*/
std::filesystem::path getUserConfigPath() const;
std::filesystem::path getUserDataPath() const;
/**
* \brief Return path to the global (system) directory.
*
* \return std::filesystem::path
*/
std::filesystem::path getGlobalConfigPath() const;
/**
* \brief Return path to the runtime directory which is the
* place where an application was started.
*
* \return std::filesystem::path
*/
std::filesystem::path getLocalPath() const;
/**
* \brief
*
* \return std::filesystem::path
*/
std::filesystem::path getCachePath() const;
/**
* \brief
*
* \return std::filesystem::path
*/
std::filesystem::path getGlobalDataPath() const;
std::filesystem::path getInstallPath() const;
std::string mName;
};
} /* namespace Files */
#endif /* defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__) */
#endif /* COMPONENTS_FILES_MACOSPATH_H */