The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
paths.cpp File Reference
#include "desktop/paths.hpp"
#include "game_config.hpp"
#include "filesystem.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "preferences/general.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/unicode.hpp"
#include <boost/filesystem.hpp>
#include <pwd.h>
#include <sys/types.h>
Include dependency graph for paths.cpp:

Go to the source code of this file.

Namespaces

 desktop
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define ERR_DU   LOG_STREAM(err, log_desktop)
 
#define LOG_DU   LOG_STREAM(info, log_desktop)
 
#define DBG_DU   LOG_STREAM(debug, log_desktop)
 

Functions

std::string desktop::user_profile_dir ()
 Returns the path to the user profile dir (e.g. More...
 
std::ostream & desktop::operator<< (std::ostream &os, const path_info &pinf)
 
std::vector< path_info > desktop::game_paths (unsigned path_types=GAME_CORE_DATA_DIR|GAME_USER_DATA_DIR)
 Returns a list of game-related paths. More...
 
std::vector< path_info > desktop::system_paths (unsigned path_types=SYSTEM_ALL_DRIVES|SYSTEM_USER_PROFILE|SYSTEM_ROOTFS)
 Returns a list of system-defined paths. More...
 
unsigned desktop::add_user_bookmark (const std::string &label, const std::string &path)
 
void desktop::remove_user_bookmark (unsigned index)
 
std::vector< bookmark_info > desktop::user_bookmarks ()
 

Variables

static lg::log_domain log_desktop ("desktop")
 

Macro Definition Documentation

#define DBG_DU   LOG_STREAM(debug, log_desktop)

Definition at line 53 of file paths.cpp.

#define ERR_DU   LOG_STREAM(err, log_desktop)

Definition at line 51 of file paths.cpp.

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file paths.cpp.

Referenced by desktop::game_paths(), and desktop::system_paths().

#define LOG_DU   LOG_STREAM(info, log_desktop)

Definition at line 52 of file paths.cpp.

Variable Documentation

lg::log_domain log_desktop("desktop")
static