2014-09-05 22:02:39 +00:00
|
|
|
#ifndef COMPONENTS_FILES_ANDROIDPATH_H
|
|
|
|
#define COMPONENTS_FILES_ANDROIDPATH_H
|
2014-08-05 20:46:21 +00:00
|
|
|
|
|
|
|
#if defined(__ANDROID__)
|
|
|
|
|
|
|
|
#include <boost/filesystem.hpp>
|
|
|
|
/**
|
|
|
|
* \namespace Files
|
|
|
|
*/
|
2014-12-02 21:03:27 +00:00
|
|
|
|
|
|
|
|
2014-08-05 20:46:21 +00:00
|
|
|
namespace Files
|
|
|
|
{
|
2014-12-02 21:11:50 +00:00
|
|
|
|
2014-08-05 20:46:21 +00:00
|
|
|
struct AndroidPath
|
|
|
|
{
|
|
|
|
AndroidPath(const std::string& application_name);
|
2014-12-02 21:03:27 +00:00
|
|
|
|
2014-08-05 20:46:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Return path to the user directory.
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getUserConfigPath() const;
|
|
|
|
|
|
|
|
boost::filesystem::path getUserDataPath() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Return path to the global (system) directory where config files can be placed.
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getGlobalConfigPath() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Return path to the runtime configuration directory which is the
|
|
|
|
* place where an application was started.
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getLocalPath() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Return path to the global (system) directory where game files can be placed.
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getGlobalDataPath() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getCachePath() const;
|
|
|
|
|
2014-08-06 03:48:16 +00:00
|
|
|
boost::filesystem::path getInstallPath() const;
|
|
|
|
|
2014-08-05 20:46:21 +00:00
|
|
|
std::string mName;
|
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace Files */
|
|
|
|
|
2014-09-05 22:02:39 +00:00
|
|
|
#endif /* defined(__Android__) */
|
2014-08-05 20:46:21 +00:00
|
|
|
|
2014-09-05 22:02:39 +00:00
|
|
|
#endif /* COMPONENTS_FILES_ANDROIDPATH_H */
|