The Battle for Wesnoth  1.19.5+dev
Classes | Namespaces | Enumerations | Functions
paths.hpp File Reference

Desktop paths, storage media and bookmark functions. More...

#include "tstring.hpp"
#include <iosfwd>
#include <set>
#include <vector>
Include dependency graph for paths.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  desktop::path_info
 
struct  desktop::bookmark_info
 

Namespaces

 desktop
 

Enumerations

enum  desktop::GAME_PATH_TYPES { desktop::GAME_BIN_DIR = 0 , desktop::GAME_CORE_DATA_DIR = 1 , desktop::GAME_USER_DATA_DIR = 3 , desktop::GAME_EDITOR_MAP_DIR = 4 }
 
enum  desktop::SYSTEM_PATH_TYPES { desktop::SYSTEM_ALL_DRIVES = 0 , desktop::SYSTEM_USER_PROFILE = 1 , desktop::SYSTEM_ROOTFS = 2 }
 

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 ()
 

Detailed Description

Desktop paths, storage media and bookmark functions.

Definition in file paths.hpp.