2011-08-19 21:06:09 +02:00
|
|
|
#ifndef COMPONENTS_FILES_WINDOWSPATH_HPP
|
|
|
|
#define COMPONENTS_FILES_WINDOWSPATH_HPP
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined(__WINDOWS__)
|
|
|
|
|
|
|
|
#include <boost/filesystem.hpp>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \namespace Files
|
|
|
|
*/
|
|
|
|
namespace Files
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \struct WindowsPath
|
|
|
|
*/
|
|
|
|
struct WindowsPath
|
|
|
|
{
|
2012-09-08 18:47:31 +02:00
|
|
|
/**
|
|
|
|
* \brief WindowsPath constructor.
|
|
|
|
*
|
|
|
|
* \param [in] application_name - The name of the application.
|
|
|
|
*/
|
|
|
|
WindowsPath(const std::string& application_name);
|
|
|
|
|
2011-08-19 21:06:09 +02:00
|
|
|
/**
|
2012-02-19 23:39:37 +01:00
|
|
|
* \brief Returns user path i.e.:
|
|
|
|
* "X:\Documents And Settings\<User name>\My Documents\My Games\"
|
2011-08-19 21:06:09 +02:00
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
2013-12-26 00:28:19 +01:00
|
|
|
boost::filesystem::path getUserConfigPath() const;
|
2013-12-26 01:24:43 +01:00
|
|
|
|
|
|
|
boost::filesystem::path getUserDataPath() const;
|
2011-08-19 21:06:09 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Returns "X:\Program Files\"
|
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
2013-12-26 00:28:19 +01:00
|
|
|
boost::filesystem::path getGlobalConfigPath() const;
|
2011-08-19 21:06:09 +02:00
|
|
|
|
|
|
|
/**
|
2012-01-21 01:14:35 +01:00
|
|
|
* \brief Return local path which is a location where
|
2011-08-19 21:06:09 +02:00
|
|
|
* an application was started
|
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
2012-01-21 01:14:35 +01:00
|
|
|
boost::filesystem::path getLocalPath() const;
|
2012-01-21 17:58:49 +01:00
|
|
|
|
2012-09-02 19:40:26 +02:00
|
|
|
/**
|
|
|
|
* \brief
|
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getCachePath() const;
|
|
|
|
|
2012-01-21 17:58:49 +01:00
|
|
|
/**
|
2012-02-23 23:01:42 +01:00
|
|
|
* \brief Return same path like getGlobalPath
|
2012-01-21 17:58:49 +01:00
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getGlobalDataPath() const;
|
|
|
|
|
2012-01-16 23:09:25 +01:00
|
|
|
/**
|
|
|
|
* \brief Gets the path of the installed Morrowind version if there is one.
|
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
2012-01-21 17:58:49 +01:00
|
|
|
boost::filesystem::path getInstallPath() const;
|
2012-09-08 18:47:31 +02:00
|
|
|
|
|
|
|
std::string mName;
|
2011-08-19 21:06:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace Files */
|
|
|
|
|
|
|
|
#endif /* defined(_WIN32) || defined(__WINDOWS__) */
|
|
|
|
|
|
|
|
#endif /* COMPONENTS_FILES_WINDOWSPATH_HPP */
|