The Battle for Wesnoth  1.19.4+dev
Namespaces | Macros | Functions | Variables
paths.cpp File Reference
#include "desktop/paths.hpp"
#include "filesystem.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "preferences/preferences.hpp"
#include "serialization/unicode.hpp"
#include "utils/general.hpp"
#include <boost/filesystem.hpp>
#include <pwd.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 (std::set< GAME_PATH_TYPES > paths)
 Returns a list of game-related paths. More...
 
std::vector< path_info > desktop::system_paths (std::set< SYSTEM_PATH_TYPES > paths)
 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

◆ DBG_DU

#define DBG_DU   LOG_STREAM(debug, log_desktop)

Definition at line 52 of file paths.cpp.

◆ ERR_DU

#define ERR_DU   LOG_STREAM(err, log_desktop)

Definition at line 50 of file paths.cpp.

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file paths.cpp.

◆ LOG_DU

#define LOG_DU   LOG_STREAM(info, log_desktop)

Definition at line 51 of file paths.cpp.

Variable Documentation

◆ log_desktop

lg::log_domain log_desktop("desktop") ( "desktop"  )
static